Skip to content

Commit

Permalink
Upgrade settings on new version
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo1991 committed Jan 2, 2019
1 parent 5a073d6 commit 77ab585
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions YChan/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ public static void AppDomain_UnhandledException(object sender, System.UnhandledE
[STAThread]
private static void Main(string[] args)
{

if (Properties.Settings.Default.UpdateSettings)
{
Properties.Settings.Default.Upgrade();
Properties.Settings.Default.UpdateSettings = false;
Properties.Settings.Default.Save();
}

// See if an instance is already running...
// Code from https://stackoverflow.com/a/1777704 by Matt Davis (https://stackoverflow.com/users/51170/matt-davis)
if (_single.WaitOne(TimeSpan.Zero, true))
Expand Down

0 comments on commit 77ab585

Please sign in to comment.