From a7d396325b7bd93e40e304186396a71bbebdffdd Mon Sep 17 00:00:00 2001 From: "Jamie.Rees" Date: Mon, 28 Nov 2016 08:45:53 +0000 Subject: [PATCH] attempt at fixing #686 --- PlexRequests.Core/StatusChecker/StatusChecker.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/PlexRequests.Core/StatusChecker/StatusChecker.cs b/PlexRequests.Core/StatusChecker/StatusChecker.cs index 9ed88f000..cfa45ea43 100644 --- a/PlexRequests.Core/StatusChecker/StatusChecker.cs +++ b/PlexRequests.Core/StatusChecker/StatusChecker.cs @@ -151,8 +151,7 @@ namespace PlexRequests.Core.StatusChecker var downloadLink = $"{AppveyorApiUrl}/buildjobs/{jobId}/artifacts/{artifactResult.fileName}"; var branchDisplay = EnumHelper.GetDisplayValue(branch); - var localVersion = AssemblyHelper.GetFileVersion(); - var localVersionExtended = $"{localVersion.Remove(localVersion.Length - 2, 2)}00"; + var fileversion = AssemblyHelper.GetFileVersion(); var model = new StatusModel { @@ -161,10 +160,10 @@ namespace PlexRequests.Core.StatusChecker ReleaseTitle = $"Plex Requests {branchDisplay}", NewVersion = branchResult.build.version, UpdateUri = downloadLink, - CurrentVersion = localVersionExtended + CurrentVersion = fileversion }; - if (!localVersionExtended.Equals(branchResult.build.version, StringComparison.CurrentCultureIgnoreCase)) + if (!fileversion.Equals(branchResult.build.version, StringComparison.CurrentCultureIgnoreCase)) { model.UpdateAvailable = true; }