Skip to content

Commit

Permalink
fix: Fix system accent color not working on some startups
Browse files Browse the repository at this point in the history
  • Loading branch information
shdwmtr committed Nov 24, 2024
1 parent e0f9af0 commit 2eb7a94
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions assets/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -151,6 +154,4 @@ export default async function PluginMain() {
// console.error("Failed to fetch updates")
// pluginSelf.connectionFailed = true
// })

Millennium.AddWindowCreateHook(windowCreated)
}

0 comments on commit 2eb7a94

Please sign in to comment.