diff options
author | sr55 <[email protected]> | 2011-08-15 16:58:58 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-08-15 16:58:58 +0000 |
commit | 774af7004dd17c59fee9606273cd52a24867eb98 (patch) | |
tree | 763f773d49e28dae91eb06479e508365bab73cbc | |
parent | 44b2c7e69d5613631a4ab39a91e01b673046f030 (diff) |
WinGui: Couple of minor bug fixes in the user settings code.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4176 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Services/UserSettingService.cs | 1 | ||||
-rw-r--r-- | win/CS/frmMain.cs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/UserSettingService.cs b/win/CS/HandBrake.ApplicationServices/Services/UserSettingService.cs index 6ef071d4b..424d0a752 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/UserSettingService.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/UserSettingService.cs @@ -155,6 +155,7 @@ namespace HandBrake.ApplicationServices.Services userSettings[UserSettingConstants.SendFile] = false;
userSettings[UserSettingConstants.MinScanDuration] = 10;
userSettings[UserSettingConstants.HandBrakeBuild] = 0;
+ userSettings[UserSettingConstants.HandBrakeVersion] = string.Empty;
}
}
}
diff --git a/win/CS/frmMain.cs b/win/CS/frmMain.cs index 64c92ce0a..a3fe681d4 100644 --- a/win/CS/frmMain.cs +++ b/win/CS/frmMain.cs @@ -454,7 +454,7 @@ namespace Handbrake lbl_updateCheck.Visible = true;
Settings.Default.lastUpdateCheckDate = DateTime.Now;
Settings.Default.Save();
- string url = userSettingService.GetUserSetting<string>(UserSettingConstants.HandBrakeBuild).EndsWith("1")
+ string url = userSettingService.GetUserSetting<int>(UserSettingConstants.HandBrakeBuild).ToString().EndsWith("1")
? Settings.Default.appcast_unstable
: Settings.Default.appcast;
UpdateService.BeginCheckForUpdates(new AsyncCallback(UpdateCheckDoneMenu), false, url, userSettingService.GetUserSetting<int>(UserSettingConstants.HandBrakeBuild), Settings.Default.skipversion, userSettingService.GetUserSetting<string>(UserSettingConstants.HandBrakeVersion));
|