Skip to content

Commit

Permalink
Fixed update checker
Browse files Browse the repository at this point in the history
  • Loading branch information
flabbet committed Dec 8, 2021
1 parent 8686e5a commit f14404f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PixiEditor.UpdateModule/UpdateChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private static async Task<ReleaseInfo> GetLatestReleaseInfoAsync(string apiUrl)

private static bool ParseVersionString(string versionString, out float version)
{
return float.TryParse(versionString.Replace(".", string.Empty).Insert(1, "."), NumberStyles.Any, CultureInfo.InvariantCulture, out version);
return float.TryParse(versionString[..7].Replace(".", string.Empty).Insert(1, "."), NumberStyles.Any, CultureInfo.InvariantCulture, out version);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public async Task<bool> CheckForUpdate()

private static void AskToInstall()
{
#if RELEASE
#if RELEASE || DEV_RELEASE
if (IPreferences.Current.GetPreference("CheckUpdatesOnStartup", true))
{
string dir = AppDomain.CurrentDomain.BaseDirectory;
Expand Down

0 comments on commit f14404f

Please sign in to comment.