From 2eb7a943a951fe965d5e749c6b04b0573918d1d8 Mon Sep 17 00:00:00 2001 From: shadow <81448108+shdwmtr@users.noreply.github.com> Date: Sun, 24 Nov 2024 15:02:11 -0400 Subject: [PATCH] fix: Fix system accent color not working on some startups --- assets/src/index.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/assets/src/index.tsx b/assets/src/index.tsx index cf8dc491..476a0a10 100644 --- a/assets/src/index.tsx +++ b/assets/src/index.tsx @@ -137,7 +137,10 @@ export default async function PluginMain() { const startTime = performance.now(); pluginSelf.WatchDog = WatchDog // Expose WatchDog to the global scope - Settings.FetchAllSettings().then((result: SettingsProps) => InitializePatcher(startTime, result)) + Settings.FetchAllSettings().then((result: SettingsProps) => { + InitializePatcher(startTime, result) + Millennium.AddWindowCreateHook(windowCreated) + }) // @todo: fix notificaitons modal // Millennium.callServerMethod("updater.get_update_list") @@ -151,6 +154,4 @@ export default async function PluginMain() { // console.error("Failed to fetch updates") // pluginSelf.connectionFailed = true // }) - - Millennium.AddWindowCreateHook(windowCreated) } \ No newline at end of file