]> granicus.if.org Git - handbrake/commitdiff
WinGui: (0.9.x) Fix an issue with the update check / build number storage code. It...
authorsr55 <sr55.hb@outlook.com>
Sat, 17 Mar 2012 13:11:33 +0000 (13:11 +0000)
committersr55 <sr55.hb@outlook.com>
Sat, 17 Mar 2012 13:11:33 +0000 (13:11 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/0.9.x@4504 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/CS/Functions/Main.cs
win/CS/ToolWindows/UpdateInfo.cs
win/CS/frmMain.cs

index 709f43ae909c32ce7356a749b78809f795367949..9744d6aa7ffb098541ed527b907acc838587d5f0 100644 (file)
@@ -371,7 +371,7 @@ namespace Handbrake.Functions
             }\r
             catch (Exception e)\r
             {\r
-                UserSettingService.SetUserSetting(ASUserSettingConstants.HandBrakeBuild, string.Empty);\r
+                UserSettingService.SetUserSetting(ASUserSettingConstants.HandBrakeBuild, 0);\r
                 UserSettingService.SetUserSetting(ASUserSettingConstants.HandBrakePlatform, string.Empty);\r
                 UserSettingService.SetUserSetting(ASUserSettingConstants.HandBrakeVersion, string.Empty);\r
                 UserSettingService.SetUserSetting(ASUserSettingConstants.HandBrakeExeHash, string.Empty);\r
index f86b0dbd731ba254a67dfbfa1aeeb4d1f863252f..a893dbccc4450735d05bd48b6f072deb45d7a0c6 100644 (file)
@@ -28,7 +28,7 @@ namespace Handbrake.ToolWindows
         /// <summary>\r
         /// The Current Build\r
         /// </summary>\r
-        private readonly string currentBuild;\r
+        private readonly int currentBuild;\r
 \r
         /// <summary>\r
         /// Initializes a new instance of the <see cref="UpdateInfo"/> class.\r
@@ -42,7 +42,7 @@ namespace Handbrake.ToolWindows
         /// <param name="currentBuild">\r
         /// The current Build.\r
         /// </param>\r
-        public UpdateInfo(UpdateCheckInformation reader, string currentVersion, string currentBuild)\r
+        public UpdateInfo(UpdateCheckInformation reader, string currentVersion, int currentBuild)\r
         {\r
             InitializeComponent();\r
 \r
index a142b5d76b98f6dd129626f917674fa2ea5a121c..e4fec9c3f12c43fe729b3deb6c61f940acf58bf9 100644 (file)
@@ -223,7 +223,7 @@ namespace Handbrake
                 if (info.NewVersionAvailable)\r
                 {\r
                     UpdateInfo updateWindow = new UpdateInfo(info, userSettingService.GetUserSetting<string>(ASUserSettingConstants.HandBrakeVersion),\r
-                        userSettingService.GetUserSetting<string>(ASUserSettingConstants.HandBrakeBuild));\r
+                        userSettingService.GetUserSetting<int>(ASUserSettingConstants.HandBrakeBuild));\r
                     updateWindow.ShowDialog();\r
                 }\r
             }\r
@@ -2584,7 +2584,7 @@ namespace Handbrake
 \r
                 if (info.NewVersionAvailable)\r
                 {\r
-                    UpdateInfo updateWindow = new UpdateInfo(info, userSettingService.GetUserSetting<string>(ASUserSettingConstants.HandBrakeVersion), userSettingService.GetUserSetting<string>(ASUserSettingConstants.HandBrakeBuild));\r
+                    UpdateInfo updateWindow = new UpdateInfo(info, userSettingService.GetUserSetting<string>(ASUserSettingConstants.HandBrakeVersion), userSettingService.GetUserSetting<int>(ASUserSettingConstants.HandBrakeBuild));\r
                     updateWindow.ShowDialog();\r
                 }\r
                 else\r