Fixed a bug where ListOverlay::OnVisbilityChanged was not calling up to super, leading overlays not always properly disappearing.

This commit is contained in:
casey langen 2018-06-19 13:24:31 -07:00
parent 046ab523be
commit fa8b29026f

View File

@ -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();