From cfb40c22a719c8c3b2050a9ff39f2a222f33f539 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Fri, 7 Dec 2012 23:38:05 +0000 Subject: [PATCH] about: don't show micro version when it's '.0' --- SparkleShare/SparkleAboutController.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SparkleShare/SparkleAboutController.cs b/SparkleShare/SparkleAboutController.cs index 19b38317..647e4c4c 100755 --- a/SparkleShare/SparkleAboutController.cs +++ b/SparkleShare/SparkleAboutController.cs @@ -36,7 +36,12 @@ namespace SparkleShare { public string RunningVersion { get { - return SparkleLib.SparkleBackend.Version; + string version = SparkleLib.SparkleBackend.Version; + + if (version.EndsWith (".0")) + version = version.Substring (0, version.Length - 2); + + return version; } }