Move theme initialization to the correct place

This commit is contained in:
tyrrrz
2026-04-07 17:54:05 +03:00
parent af3ec8c299
commit ae70fe9741

View File

@@ -96,9 +96,6 @@ public class App : Application, IDisposable
public override void OnFrameworkInitializationCompleted()
{
// Initialize the default theme, before a custom one (if any) is applied by loading settings
InitializeTheme();
// Load settings
_settingsService.Load();
@@ -117,6 +114,9 @@ public class App : Application, IDisposable
desktop.Exit += (_, _) => Dispose();
}
// Initialize the theme for the first time; must be done after the main window is created
InitializeTheme();
base.OnFrameworkInitializationCompleted();
}