OSDN Git Service

WinGui:
authorsr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Wed, 12 Jan 2011 19:46:38 +0000 (19:46 +0000)
committersr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Wed, 12 Jan 2011 19:46:38 +0000 (19:46 +0000)
- 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

index c147542..744e46f 100644 (file)
@@ -33,13 +33,20 @@ namespace Handbrake
             InstanceId = Process.GetProcessesByName("HandBrake").Length;\r
 \r
             // Handle any unhandled exceptions\r
-            AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomainUnhandledException);\r
+            AppDomain.CurrentDomain.UnhandledException += CurrentDomainUnhandledException;\r
 \r
             // Attempt to upgrade / keep the users settings between versions\r
             if (Settings.Default.UpdateRequired)\r
             {\r
                 Settings.Default.Upgrade();\r
+                // Reset some settings\r
                 Settings.Default.UpdateRequired = false;\r
+                Settings.Default.CliExeHash = null;\r
+                Settings.Default.hb_build = 0;\r
+                Settings.Default.hb_platform = null;\r
+                Settings.Default.hb_version = null;\r
+\r
+                // Re-detect the CLI version data.\r
                 Functions.Main.SetCliVersionData();\r
             }\r
 \r