mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-05-02 18:44:26 +00:00
Move theme initialization to the correct place
This commit is contained in:
@@ -96,9 +96,6 @@ public class App : Application, IDisposable
|
|||||||
|
|
||||||
public override void OnFrameworkInitializationCompleted()
|
public override void OnFrameworkInitializationCompleted()
|
||||||
{
|
{
|
||||||
// Initialize the default theme, before a custom one (if any) is applied by loading settings
|
|
||||||
InitializeTheme();
|
|
||||||
|
|
||||||
// Load settings
|
// Load settings
|
||||||
_settingsService.Load();
|
_settingsService.Load();
|
||||||
|
|
||||||
@@ -117,6 +114,9 @@ public class App : Application, IDisposable
|
|||||||
desktop.Exit += (_, _) => Dispose();
|
desktop.Exit += (_, _) => Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Initialize the theme for the first time; must be done after the main window is created
|
||||||
|
InitializeTheme();
|
||||||
|
|
||||||
base.OnFrameworkInitializationCompleted();
|
base.OnFrameworkInitializationCompleted();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user