summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions/Main.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-09-13 21:21:57 +0000
committersr55 <[email protected]>2009-09-13 21:21:57 +0000
commit72e3892f2e47a90ce08ce07ff7f35097795d1125 (patch)
tree90aaf15d64d65991dc3bc2e89bb231c5bc88bff1 /win/C#/Functions/Main.cs
parent9d0ec3bed586f45f710882df0942e36d0f48aafe (diff)
WinGui:
- Fix: Don't check version data if the CLI file hasn't actually changed since the last launch. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2818 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions/Main.cs')
-rw-r--r--win/C#/Functions/Main.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/win/C#/Functions/Main.cs b/win/C#/Functions/Main.cs
index 022a025ba..dd618cb52 100644
--- a/win/C#/Functions/Main.cs
+++ b/win/C#/Functions/Main.cs
@@ -197,6 +197,15 @@ namespace Handbrake.Functions
// 0 = SVN Build / Version
// 1 = Build Date
+
+ DateTime lastModified = File.GetLastWriteTime("HandBrakeCLI.exe");
+
+
+ if (Properties.Settings.Default.cliLastModified == lastModified && Properties.Settings.Default.hb_build != 0)
+ return;
+
+ Properties.Settings.Default.cliLastModified = lastModified;
+
Process cliProcess = new Process();
ProcessStartInfo handBrakeCLI = new ProcessStartInfo("HandBrakeCLI.exe", " -u")
{
@@ -237,6 +246,7 @@ namespace Handbrake.Functions
cli.Kill();
}
}
+ Properties.Settings.Default.Save();
}
catch (Exception e)
{