mirror of
https://github.com/clangen/musikcube.git
synced 2024-10-02 04:52:32 +00:00
Fixed a bug where ListOverlay::OnVisbilityChanged was not calling up to super, leading overlays not always properly disappearing.
This commit is contained in:
parent
046ab523be
commit
fa8b29026f
@ -56,6 +56,9 @@ class ListOverlay::CustomListWindow : public ListWindow {
|
||||
this->adapterChanged = adapterChanged;
|
||||
}
|
||||
|
||||
virtual ~CustomListWindow() {
|
||||
}
|
||||
|
||||
virtual void OnAdapterChanged() {
|
||||
if (adapterChanged) { adapterChanged(); };
|
||||
ListWindow::OnAdapterChanged();
|
||||
@ -259,6 +262,8 @@ bool ListOverlay::KeyPress(const std::string& key) {
|
||||
}
|
||||
|
||||
void ListOverlay::OnVisibilityChanged(bool visible) {
|
||||
LayoutBase::OnVisibilityChanged(visible);
|
||||
|
||||
if (visible) {
|
||||
this->LayoutBase::SetFocus(this->listWindow);
|
||||
this->Redraw();
|
||||
|
Loading…
Reference in New Issue
Block a user