From bc8cc4092db4400b470e426c0ead18d8c750e378 Mon Sep 17 00:00:00 2001 From: Chris Kaczor Date: Thu, 22 Feb 2018 12:36:03 -0500 Subject: [PATCH] Make sure to upgrade settings --- App.xaml.cs | 2 ++ WindowSource.cs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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 }