From 02d1cd1ec0f544335ca1b31546737868a675439f Mon Sep 17 00:00:00 2001
From: Zhao Yuhang <2546789017@qq.com>
Date: 周六, 23 12月 2023 22:36:06 +0800
Subject: [PATCH] fix theme notify

---
 src/core/contexts/abstractwindowcontext.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/core/contexts/abstractwindowcontext.cpp b/src/core/contexts/abstractwindowcontext.cpp
index d2da16f..de9674c 100644
--- a/src/core/contexts/abstractwindowcontext.cpp
+++ b/src/core/contexts/abstractwindowcontext.cpp
@@ -54,7 +54,7 @@
             if (!attribute.isValid()) {
                 return true;
             }
-            if (m_windowHandle && !windowAttributeChanged(key, attribute, {})) {
+            if (!m_windowHandle || !windowAttributeChanged(key, attribute, {})) {
                 return false;
             }
             m_windowAttributes.insert(key, attribute);
@@ -63,7 +63,7 @@
 
         if (it.value() == attribute)
             return true;
-        if (m_windowHandle && !windowAttributeChanged(key, attribute, it.value())) {
+        if (!m_windowHandle || !windowAttributeChanged(key, attribute, it.value())) {
             return false;
         }
 

--
Gitblit v1.9.1