mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
shorten version compare logic
This commit is contained in:
parent
2edc345892
commit
ea179e5455
1 changed files with 1 additions and 2 deletions
|
|
@ -555,8 +555,7 @@ namespace Flow.Launcher.Plugin.PluginsManager
|
|||
var newMetadata = JsonSerializer.Deserialize<PluginMetadata>(File.ReadAllText(metadataPath));
|
||||
return Context.API.GetAllPlugins()
|
||||
.Any(x => x.Metadata.ID == newMetadata.ID
|
||||
&& (x.Metadata.Version == newMetadata.Version
|
||||
|| newMetadata.Version.CompareTo(x.Metadata.Version) < 0));
|
||||
&& newMetadata.Version.CompareTo(x.Metadata.Version) <= 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue