File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/framework/ui/internal Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,10 @@ void UiConfiguration::init()
136136 m_musicalFontChanged.notify ();
137137 });
138138
139+ platformTheme ()->platformThemeChanged ().onNotify (this , [this ]() {
140+ synchThemeWithSystemIfNecessary ();
141+ });
142+
139143 m_uiArrangement.stateChanged (WINDOW_GEOMETRY_KEY).onNotify (this , [this ]() {
140144 m_windowGeometryChanged.notify ();
141145 });
@@ -165,10 +169,6 @@ void UiConfiguration::initThemes()
165169{
166170 m_isFollowSystemTheme.val = settings ()->value (UI_FOLLOW_SYSTEM_THEME_KEY).toBool ();
167171
168- platformTheme ()->platformThemeChanged ().onNotify (this , [this ]() {
169- synchThemeWithSystemIfNecessary ();
170- });
171-
172172 updateSystemThemeListeningStatus ();
173173
174174 for (const ThemeCode& codeKey : allStandardThemeCodes ()) {
You can’t perform that action at this time.
0 commit comments