Skip to content

Commit

Permalink
Fix version check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sajidur78 committed Apr 4, 2020
1 parent 3ea1ebf commit 03fb1a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HedgeModManager/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ public static (bool, ReleaseInfo) CheckForUpdates()
{
var info = GithubAPI.GetLatestRelease(RepoOwner, RepoName);
var version = info == null ? Version : info.GetVersion();
bool hasUpdate = version.Major >= Version.Major && (version.Minor > Version.Minor || version.Revision > Version.Revision);
bool hasUpdate = version > Version;

return (hasUpdate, info);
}
Expand Down

0 comments on commit 03fb1a3

Please sign in to comment.