From 271e085fdf312d753c2ba8b3daedda7332737041 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Wed, 6 Mar 2024 09:19:53 +0100 Subject: [PATCH] App: Fix Version comparison in auto updater --- Elwig/App.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Elwig/App.xaml.cs b/Elwig/App.xaml.cs index d477197..bef7d46 100644 --- a/Elwig/App.xaml.cs +++ b/Elwig/App.xaml.cs @@ -198,7 +198,7 @@ namespace Elwig { public static async Task CheckForUpdates() { if (Config.UpdateUrl == null) return; var latest = await Utils.GetLatestInstallerUrl(Config.UpdateUrl); - if (latest != null && latest.Value.Version != Version) { + if (latest != null && new Version(latest.Value.Version) > new Version(Version)) { await MainDispatcher.BeginInvoke(() => { var d = new UpdateDialog(latest.Value.Version, latest.Value.Url, latest.Value.Size); if (d.ShowDialog() == true) {