core/window: fix backingWindowVisible always reporting true

This commit is contained in:
outfoxxed committed 2024-03-27 02:52:56 -07:00
1 parent 3026d3400a
commit c3fe93efe6
1 file changed
+2 -3
+2 -3
View File
@@ -180,15 +180,14 @@ void ProxyWindowBase::setVisibleDirect(bool visible) {
emit this->backerVisibilityChanged();
} else {
if (this->window != nullptr) {
emit this->backerVisibilityChanged();
this->window->setVisible(false);
emit this->backerVisibilityChanged();
this->deleteWindow();
}
}
} else if (this->window != nullptr) {
if (!visible) emit this->backerVisibilityChanged();
this->window->setVisible(visible);
if (visible) emit this->backerVisibilityChanged();
emit this->backerVisibilityChanged();
}
}