attempt at fixing #686

pull/733/head
Jamie.Rees 8 years ago
parent 21f3131cb4
commit a7d396325b

@ -151,8 +151,7 @@ namespace PlexRequests.Core.StatusChecker
var downloadLink = $"{AppveyorApiUrl}/buildjobs/{jobId}/artifacts/{artifactResult.fileName}"; var downloadLink = $"{AppveyorApiUrl}/buildjobs/{jobId}/artifacts/{artifactResult.fileName}";
var branchDisplay = EnumHelper<Branches>.GetDisplayValue(branch); var branchDisplay = EnumHelper<Branches>.GetDisplayValue(branch);
var localVersion = AssemblyHelper.GetFileVersion(); var fileversion = AssemblyHelper.GetFileVersion();
var localVersionExtended = $"{localVersion.Remove(localVersion.Length - 2, 2)}00";
var model = new StatusModel var model = new StatusModel
{ {
@ -161,10 +160,10 @@ namespace PlexRequests.Core.StatusChecker
ReleaseTitle = $"Plex Requests {branchDisplay}", ReleaseTitle = $"Plex Requests {branchDisplay}",
NewVersion = branchResult.build.version, NewVersion = branchResult.build.version,
UpdateUri = downloadLink, 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; model.UpdateAvailable = true;
} }

Loading…
Cancel
Save