From c9b21006d19f7002354bebe2fc1b40f85fa6b613 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Wed, 9 Sep 2020 14:34:50 -0700 Subject: [PATCH] Fix update check (fixes #220) --- DICUI/Windows/MainWindow.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DICUI/Windows/MainWindow.xaml.cs b/DICUI/Windows/MainWindow.xaml.cs index 465add6d..fe814d90 100644 --- a/DICUI/Windows/MainWindow.xaml.cs +++ b/DICUI/Windows/MainWindow.xaml.cs @@ -266,7 +266,7 @@ namespace DICUI.Windows { // Get the current internal version var assemblyVersion = Assembly.GetEntryAssembly().GetName().Version; - string version = $"{assemblyVersion.Major}.{assemblyVersion.Minor}" + (assemblyVersion.MajorRevision != 0 ? $".{assemblyVersion.MajorRevision}" : string.Empty); + string version = $"{assemblyVersion.Major}.{assemblyVersion.Minor}" + (assemblyVersion.Build != 0 ? $".{assemblyVersion.Build}" : string.Empty); // Get the latest tag from GitHub using (var client = new RedumpWebClient())