Only use 2 revisions for checks
This commit is contained in:
parent
968bd4f654
commit
97917ac1d8
@ -613,11 +613,11 @@ namespace Toolbox
|
|||||||
private void UpdateToolbar(bool DisplayVersion)
|
private void UpdateToolbar(bool DisplayVersion)
|
||||||
{
|
{
|
||||||
string commit = $"Commit: {Runtime.CommitInfo}";
|
string commit = $"Commit: {Runtime.CommitInfo}";
|
||||||
|
|
||||||
var asssemblyVersion = Assembly.GetExecutingAssembly().GetName().Version;
|
var asssemblyVersion = Assembly.GetExecutingAssembly().GetName().Version;
|
||||||
|
var version = $"{asssemblyVersion.Major}.{asssemblyVersion.MajorRevision}.{asssemblyVersion.Minor}";
|
||||||
|
|
||||||
if (DisplayVersion)
|
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
|
else
|
||||||
Text = $"{Application.ProductName}";
|
Text = $"{Application.ProductName}";
|
||||||
}
|
}
|
||||||
|
@ -32,8 +32,9 @@ namespace Toolbox
|
|||||||
GetCommits(client).Wait();
|
GetCommits(client).Wait();
|
||||||
|
|
||||||
var asssemblyVersion = Assembly.GetExecutingAssembly().GetName().Version;
|
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)
|
if (IsLatest)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user