Workaround for Settings.Upgrade with Squirrel

This commit is contained in:
2018-02-22 14:08:34 -05:00
parent c865cc0d1c
commit 359ff583db
4 changed files with 69 additions and 11 deletions

View File

@@ -16,14 +16,7 @@ namespace ProcessCpuUsageStatusWindow
[STAThread]
public static void Main(string[] args)
{
if (Settings.Default.FirstRun)
{
Settings.Default.Upgrade();
Settings.Default.FirstRun = false;
Settings.Default.Save();
}
SquirrelAwareApp.HandleEvents();
SquirrelAwareApp.HandleEvents(onAppUpdate: version => SettingsExtensions.RestoreSettings());
var application = new App();
application.InitializeComponent();