diff options
author | sr55 <[email protected]> | 2011-01-12 19:46:38 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-01-12 19:46:38 +0000 |
commit | 7deffcb2407575dea5840442e272eb7adce93839 (patch) | |
tree | 5f9e8b4fbcc04bb2a12f0be61d1af493b2d0baa8 | |
parent | 6d44f4db6459a4cec248130438319aa18b86ac1c (diff) |
WinGui:
- Force reset some versioning settings when the handbrake gui executable is updated.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3742 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | win/C#/Program.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/win/C#/Program.cs b/win/C#/Program.cs index c14754201..744e46f21 100644 --- a/win/C#/Program.cs +++ b/win/C#/Program.cs @@ -33,13 +33,20 @@ namespace Handbrake InstanceId = Process.GetProcessesByName("HandBrake").Length;
// Handle any unhandled exceptions
- AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomainUnhandledException);
+ AppDomain.CurrentDomain.UnhandledException += CurrentDomainUnhandledException;
// Attempt to upgrade / keep the users settings between versions
if (Settings.Default.UpdateRequired)
{
Settings.Default.Upgrade();
+ // Reset some settings
Settings.Default.UpdateRequired = false;
+ Settings.Default.CliExeHash = null;
+ Settings.Default.hb_build = 0;
+ Settings.Default.hb_platform = null;
+ Settings.Default.hb_version = null;
+
+ // Re-detect the CLI version data.
Functions.Main.SetCliVersionData();
}
|