|
|
@ -106,6 +106,7 @@ public class RootViewModel : Screen, IHandle<NotificationMessage>, IDisposable
|
|
|
|
|
|
|
|
|
|
|
|
_settingsService.Load();
|
|
|
|
_settingsService.Load();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Sync theme with settings
|
|
|
|
if (_settingsService.IsDarkModeEnabled)
|
|
|
|
if (_settingsService.IsDarkModeEnabled)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
App.SetDarkTheme();
|
|
|
|
App.SetDarkTheme();
|
|
|
@ -114,6 +115,18 @@ public class RootViewModel : Screen, IHandle<NotificationMessage>, IDisposable
|
|
|
|
{
|
|
|
|
{
|
|
|
|
App.SetLightTheme();
|
|
|
|
App.SetLightTheme();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// App has just been updated, display changelog
|
|
|
|
|
|
|
|
if (_settingsService.LastAppVersion != App.Version)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Notifications.Enqueue(
|
|
|
|
|
|
|
|
$"Successfully updated to {App.Name} v{App.VersionString}",
|
|
|
|
|
|
|
|
"CHANGELOG", () => ProcessEx.StartShellExecute(App.ChangelogUrl)
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_settingsService.LastAppVersion = App.Version;
|
|
|
|
|
|
|
|
_settingsService.Save();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected override void OnClose()
|
|
|
|
protected override void OnClose()
|
|
|
|