diff options
author | sr55 <[email protected]> | 2010-05-08 20:37:46 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2010-05-08 20:37:46 +0000 |
commit | 2c09783d0f93b6c1a94b778daf113b4d5b5ab8de (patch) | |
tree | 57f68352ec2ed045c5fccf2ec6745b73a03eecc9 /win/C#/Program.cs | |
parent | 49000950c59a1ced681c0f481da8e8c024b3f5ab (diff) |
WinGui:
- Attempt to upgrade program settings on upgrade.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3289 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Program.cs')
-rw-r--r-- | win/C#/Program.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/win/C#/Program.cs b/win/C#/Program.cs index ea82e3e34..8600fe569 100644 --- a/win/C#/Program.cs +++ b/win/C#/Program.cs @@ -8,6 +8,9 @@ namespace Handbrake using System;
using System.IO;
using System.Windows.Forms;
+
+ using Handbrake.Properties;
+
using Presets;
/// <summary>
@@ -21,6 +24,12 @@ namespace Handbrake [STAThread]
public static void Main()
{
+ if (Settings.Default.UpdateRequired)
+ {
+ Settings.Default.Upgrade();
+ Settings.Default.UpdateRequired = false;
+ }
+
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
const string failedInstall = "HandBrake is not installed properly. Please reinstall HandBrake. \n\n";
|