core/window: fix backingWindowVisible always reporting true

This commit is contained in:
outfoxxed 2024-03-27 02:52:56 -07:00
parent 3026d3400a
commit c3fe93efe6
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E

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