mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Use CompareTo to check update for InstallOrUpdate method
This commit is contained in:
parent
d0743f6276
commit
c485578cff
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ namespace Flow.Launcher.Plugin.PluginsManager
|
|||
if (PluginExists(plugin.ID))
|
||||
{
|
||||
if (Context.API.GetAllPlugins()
|
||||
.Any(x => x.Metadata.ID == plugin.ID && x.Metadata.Version != plugin.Version))
|
||||
.Any(x => x.Metadata.ID == plugin.ID && x.Metadata.Version.CompareTo(plugin.Version) < 0))
|
||||
{
|
||||
if (MessageBox.Show(Context.API.GetTranslation("plugin_pluginsmanager_update_exists"),
|
||||
Context.API.GetTranslation("plugin_pluginsmanager_update_title"),
|
||||
|
|
|
|||
Loading…
Reference in a new issue