diff --git a/App.xaml.cs b/App.xaml.cs index 39b40a8..90bb543 100644 --- a/App.xaml.cs +++ b/App.xaml.cs @@ -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 => diff --git a/WindowSource.cs b/WindowSource.cs index 66ebb18..3bc545d 100644 --- a/WindowSource.cs +++ b/WindowSource.cs @@ -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 }