mirror of
https://github.com/ckaczor/ProcessCpuUsageStatusWindow.git
synced 2026-01-13 17:23:02 -05:00
Make sure to upgrade settings
This commit is contained in:
@@ -27,6 +27,8 @@ namespace ProcessCpuUsageStatusWindow
|
||||
{
|
||||
base.OnStartup(e);
|
||||
|
||||
Settings.Default.Upgrade();
|
||||
|
||||
StartManager.ManageAutoStart = true;
|
||||
StartManager.AutoStartEnabled = !Debugger.IsAttached && Settings.Default.AutoStart;
|
||||
StartManager.AutoStartChanged += (value =>
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace ProcessCpuUsageStatusWindow
|
||||
_dispatcher.Invoke(() => _floatingStatusWindow.SetText(Resources.Updating));
|
||||
Thread.Sleep(1000);
|
||||
|
||||
#if !DEBUGr
|
||||
#if !DEBUG
|
||||
await updateManager.DownloadReleases(new[] { lastVersion });
|
||||
await updateManager.ApplyReleases(updates);
|
||||
await updateManager.UpdateApp();
|
||||
@@ -54,7 +54,7 @@ namespace ProcessCpuUsageStatusWindow
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !DEBUGr
|
||||
#if !DEBUG
|
||||
UpdateManager.RestartApp();
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user