From c3fe93efe652d4528098573d863ffcc14b236b4e Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Wed, 27 Mar 2024 02:52:56 -0700 Subject: [PATCH] core/window: fix backingWindowVisible always reporting true --- src/core/proxywindow.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/core/proxywindow.cpp b/src/core/proxywindow.cpp index 285375b..7756e2d 100644 --- a/src/core/proxywindow.cpp +++ b/src/core/proxywindow.cpp @@ -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(); } }