Skip to content

Commit c485578

Browse files
committed
Use CompareTo to check update for InstallOrUpdate method
1 parent d0743f6 commit c485578

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ internal async Task InstallOrUpdate(UserPlugin plugin)
9292
if (PluginExists(plugin.ID))
9393
{
9494
if (Context.API.GetAllPlugins()
95-
.Any(x => x.Metadata.ID == plugin.ID && x.Metadata.Version != plugin.Version))
95+
.Any(x => x.Metadata.ID == plugin.ID && x.Metadata.Version.CompareTo(plugin.Version) < 0))
9696
{
9797
if (MessageBox.Show(Context.API.GetTranslation("plugin_pluginsmanager_update_exists"),
9898
Context.API.GetTranslation("plugin_pluginsmanager_update_title"),

0 commit comments

Comments
 (0)