about: Fix version check

This commit is contained in:
Hylke Bons 2013-05-27 18:54:39 +01:00
parent 6bb1cd64ff
commit 069bf713f1

View file

@ -34,20 +34,13 @@ namespace SparkleShare {
public readonly string ReportProblemLinkAddress = "http://www.github.com/hbons/SparkleShare/issues";
public readonly string DebugLogLinkAddress = "file://" + Program.Controller.ConfigPath;
public string RunningVersion {
get {
string version = SparkleLib.SparkleBackend.Version;
if (version.EndsWith (".0"))
version = version.Substring (0, version.Length - 2);
return version;
}
}
public string RunningVersion;
public SparkleAboutController ()
{
RunningVersion = SparkleLib.SparkleBackend.Version;
Program.Controller.ShowAboutWindowEvent += delegate {
ShowWindowEvent ();
new Thread (() => CheckForNewVersion ()).Start ();