1
0
mirror of synced 2024-11-27 17:00:50 +01:00

Only use 2 revisions for checks

This commit is contained in:
KillzXGaming 2020-08-31 19:50:34 -04:00
parent 968bd4f654
commit 97917ac1d8
2 changed files with 4 additions and 3 deletions

View File

@ -613,11 +613,11 @@ namespace Toolbox
private void UpdateToolbar(bool DisplayVersion)
{
string commit = $"Commit: {Runtime.CommitInfo}";
var asssemblyVersion = Assembly.GetExecutingAssembly().GetName().Version;
var version = $"{asssemblyVersion.Major}.{asssemblyVersion.MajorRevision}.{asssemblyVersion.Minor}";
if (DisplayVersion)
Text = $"{Application.ProductName} | Version: {Runtime.ProgramVersion} | {commit} | Compile Date: {Runtime.CompileDate} Assembly {asssemblyVersion}";
Text = $"{Application.ProductName} | Version: {Runtime.ProgramVersion} | {commit} | Compile Date: {Runtime.CompileDate} Assembly {version}";
else
Text = $"{Application.ProductName}";
}

View File

@ -32,8 +32,9 @@ namespace Toolbox
GetCommits(client).Wait();
var asssemblyVersion = Assembly.GetExecutingAssembly().GetName().Version;
var version = $"{asssemblyVersion.Major}.{asssemblyVersion.MajorRevision}.{asssemblyVersion.Minor}";
bool IsLatest = Releases.Any(x => x.Name.Contains($"v{asssemblyVersion}"));
bool IsLatest = Releases.Any(x => x.Name.Contains($"v{version}"));
if (IsLatest)
return;