diff options
author | sr55 <[email protected]> | 2007-09-24 21:01:21 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2007-09-24 21:01:21 +0000 |
commit | dc5e631284d5005e04f720d0be91b79251cd97a1 (patch) | |
tree | dfc03fb59035888c32e478c762aa6be4357ca55c | |
parent | c6dde7079e2e1dbd7b567054f06742f998a92ff4 (diff) |
WinGui:
- Fixed update checker option (was not disabling the on start-up update check)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@988 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | win/C#/frmMain.cs | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index 1ede6f3b6..e6302a2f3 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -187,15 +187,22 @@ namespace Handbrake {
try
{
- String updateFile = Properties.Settings.Default.updateFile;
- WebClient client = new WebClient();
- String data = client.DownloadString(updateFile);
- String[] versionData = data.Split('\n');
-
- if ((versionData[0] != Properties.Settings.Default.GuiVersion) || (versionData[1] != Properties.Settings.Default.CliVersion))
+ if (Properties.Settings.Default.updateStatus == "Checked")
{
- lbl_update.Visible = true;
- return 1;
+ String updateFile = Properties.Settings.Default.updateFile;
+ WebClient client = new WebClient();
+ String data = client.DownloadString(updateFile);
+ String[] versionData = data.Split('\n');
+
+ if ((versionData[0] != Properties.Settings.Default.GuiVersion) || (versionData[1] != Properties.Settings.Default.CliVersion))
+ {
+ lbl_update.Visible = true;
+ return 1;
+ }
+ else
+ {
+ return 0;
+ }
}
else
{
|