2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-04-05 17:39:39 -04:00

Correcting version check

This commit is contained in:
Xjph 2022-04-04 21:22:51 -02:30
parent 3fe3ef9901
commit e7f7250c08

View File

@ -179,7 +179,9 @@ namespace Observatory.UI.ViewModels
foreach (var release in releases)
{
if (release.GetProperty("tag_name").ToString().CompareTo("v" + System.Reflection.Assembly.GetEntryAssembly().GetName().Version.ToString()) > 0)
var ver = release.GetProperty("tag_name").ToString()[1..].Split('.').Select(verString => int.Parse(verString)).ToArray();
Version version = new(ver[0], ver[1], ver[2], ver[3]);
if (version > System.Reflection.Assembly.GetEntryAssembly().GetName().Version)
{
return true;
}