Merge pull request #1980 from onesounds/FixWrongVersionCheck

Fix Wrong Version Check in plugin store
This commit is contained in:
Kevin Zhang 2023-03-13 17:08:20 -05:00 committed by GitHub
commit 20937845ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,13 +26,19 @@ namespace Flow.Launcher.ViewModel
public string IcoPath => _plugin.IcoPath;
public bool LabelInstalled => PluginManager.GetPluginForId(_plugin.ID) != null;
public bool LabelUpdate => LabelInstalled && _plugin.Version != PluginManager.GetPluginForId(_plugin.ID).Metadata.Version;
public bool LabelUpdate => LabelInstalled && VersionConvertor(_plugin.Version) > VersionConvertor(PluginManager.GetPluginForId(_plugin.ID).Metadata.Version);
internal const string None = "None";
internal const string RecentlyUpdated = "RecentlyUpdated";
internal const string NewRelease = "NewRelease";
internal const string Installed = "Installed";
public Version VersionConvertor(string version)
{
Version ResultVersion = new Version(version);
return ResultVersion;
}
public string Category
{
get