Permalink
Browse files

- minor fix for autoupdate special condition

  • Loading branch information...
cozy1 committed Jan 22, 2019
1 parent e054e9a commit 2afdf385f96174815bae1641ebd20147479aa35b
@@ -29,5 +29,5 @@
//
// THESE VALUES ARE PROGRAMMATICALLY GENERATED - DO NOT EDIT
[assembly: AssemblyVersion("2.9.2.0")]
[assembly: AssemblyInformationalVersion("10014e93")]
[assembly: AssemblyInformationalVersion("e054e9ab")]
[assembly: AssemblyConfiguration("")]
@@ -43,7 +43,7 @@ public void Init(ToolkitVersionOnline onlineVersion)

var useBeta = ConfigRepository.Instance().GetBoolean("general_usebeta");
lblCurrentVersion.Text = ToolkitVersion.RSTKGuiVersion;
lblNewVersion.Text = String.Format("{0}-{1} {2}", onlineVersion.Version, onlineVersion.Revision, useBeta ? "BUILD" : "");
lblNewVersion.Text = String.Format("{0}-{1} {2}", onlineVersion.Version, onlineVersion.Revision, useBeta ? "" : "RELEASE");
lblNewVersionDate.Text = onlineVersion.Date.ToShortDateString();

if (onlineVersion.CommitMessages != null)
@@ -27,5 +27,5 @@
//
// THESE VALUES ARE PROGRAMMATICALLY GENERATED - DO NOT EDIT
[assembly: AssemblyVersion("2.9.2.0")]
[assembly: AssemblyInformationalVersion("10014e93")]
[assembly: AssemblyInformationalVersion("e054e9ab")]
[assembly: AssemblyConfiguration("")]
@@ -64,8 +64,8 @@ public static ToolkitVersionOnline Load(string versionInfoUrl = "")
// recommend update to latest revision under special conditions
var useBeta = ConfigRepository.Instance().GetBoolean("general_usebeta");

if ((!useBeta && ToolkitVersion.AssemblyConfiguration == "BUILD") ||
(useBeta && ToolkitVersion.AssemblyConfiguration != "BUILD"))
if ((!useBeta && ToolkitVersion.AssemblyConfiguration == "") ||
(useBeta && ToolkitVersion.AssemblyConfiguration != ""))
{
versionInfoJson = new WebClient().DownloadString(GetFileUrl());
toolkitVersionOnline = JsonConvert.DeserializeObject<ToolkitVersionOnline>(versionInfoJson);
@@ -29,5 +29,5 @@
//
// THESE VALUES ARE PROGRAMMATICALLY GENERATED - DO NOT EDIT
[assembly: AssemblyVersion("2.9.2.0")]
[assembly: AssemblyInformationalVersion("10014e93")]
[assembly: AssemblyInformationalVersion("e054e9ab")]
[assembly: AssemblyConfiguration("")]
@@ -1,3 +1,3 @@
2.9.2.0
10014e93
e054e9ab

0 comments on commit 2afdf38

Please sign in to comment.