From 069bf713f1b78d9fd9b2ac3399cd5f9ec3571218 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Mon, 27 May 2013 18:54:39 +0100 Subject: [PATCH] about: Fix version check --- SparkleShare/SparkleAboutController.cs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/SparkleShare/SparkleAboutController.cs b/SparkleShare/SparkleAboutController.cs index c8e706f1..05881b86 100755 --- a/SparkleShare/SparkleAboutController.cs +++ b/SparkleShare/SparkleAboutController.cs @@ -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 ();