From 7d747f3bb139d2c01aee61b809d0929e8e908a2d Mon Sep 17 00:00:00 2001
From: Zhao Yuhang <2546789017@qq.com>
Date: 周六, 23 12月 2023 17:41:00 +0800
Subject: [PATCH] update qmsetup

---
 src/core/style/styleagent_win.cpp |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/src/core/style/styleagent_win.cpp b/src/core/style/styleagent_win.cpp
index 663b632..bee647a 100644
--- a/src/core/style/styleagent_win.cpp
+++ b/src/core/style/styleagent_win.cpp
@@ -85,7 +85,7 @@
 
     SystemSettingEventFilter *SystemSettingEventFilter::instance = nullptr;
 
-    void StyleAgentPrivate::init() {
+    void StyleAgentPrivate::setupSystemThemeHook() {
         if (isHighContrastModeEnabled()) {
             systemTheme = StyleAgent::HighContrast;
         } else if (isDarkThemeActive()) {
@@ -93,9 +93,7 @@
         } else {
             systemTheme = StyleAgent::Light;
         }
-    }
 
-    void StyleAgentPrivate::setupSystemThemeHook() {
         g_styleAgentSet->insert(this);
         SystemSettingEventFilter::install();
     }

--
Gitblit v1.9.1