about: don't show micro version when it's '.0'

This commit is contained in:
Hylke Bons 2012-12-07 23:38:05 +00:00
parent 3eced333e9
commit cfb40c22a7

View file

@ -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;
}
}