From a2ec935f58dafca54834bf9c6fb3d85db738a0d8 Mon Sep 17 00:00:00 2001 From: sr55 Date: Wed, 12 Jan 2011 19:46:38 +0000 Subject: [PATCH] WinGui: - Force reset some versioning settings when the handbrake gui executable is updated. git-svn-id: svn://localhost/HandBrake/trunk@3742 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/Program.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/win/C#/Program.cs b/win/C#/Program.cs index c1475420..744e46f2 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(); } -- 2.11.0