core/proxywindow: create window on visibility for lazily initialized windows

This commit is contained in:
bbedward 2026-01-20 16:10:45 -05:00
parent 7a427ce197
commit 8fd0de4580

View file

@ -288,10 +288,16 @@ void ProxyWindowBase::setVisibleDirect(bool visible) {
this->bBackerVisibility = false;
this->deleteWindow();
}
} else if (this->window != nullptr) {
if (visible) this->polishItems();
this->window->setVisible(visible);
this->bBackerVisibility = visible;
} else {
if (visible && this->window == nullptr) {
this->createWindow();
}
if (this->window != nullptr) {
if (visible) this->polishItems();
this->window->setVisible(visible);
this->bBackerVisibility = visible;
}
}
}