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/style/styleagent_win.cpp | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/src/core/style/styleagent_win.cpp b/src/core/style/styleagent_win.cpp index bee647a..c4e4e96 100644 --- a/src/core/style/styleagent_win.cpp +++ b/src/core/style/styleagent_win.cpp @@ -55,10 +55,7 @@ } }(); for (auto &&ap : std::as_const(*g_styleAgentSet())) { - if (ap->systemTheme != theme) { - ap->systemTheme = theme; - ap->notifyThemeChanged(theme); - } + ap->notifyThemeChanged(theme); } } -- Gitblit v1.9.1