mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-03-12 01:43:05 +00:00
[GUI] Clean up theme management
This commit is contained in:
@@ -107,8 +107,15 @@ namespace DiscordChatExporter.Gui.ViewModels
|
||||
IsBotToken = _settingsService.LastToken.Type == AuthTokenType.Bot;
|
||||
TokenValue = _settingsService.LastToken.Value;
|
||||
}
|
||||
|
||||
Theme.SetCurrent(_settingsService.IsDarkThemeEnabled ? Theme.Dark : Theme.Light);
|
||||
|
||||
if (_settingsService.IsDarkThemeEnabled)
|
||||
{
|
||||
App.SetDarkTheme();
|
||||
}
|
||||
else
|
||||
{
|
||||
App.SetLightTheme();
|
||||
}
|
||||
|
||||
await HandleAutoUpdateAsync();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user