Skip to content

Commit 2093784

Browse files
authored
Merge pull request #1980 from onesounds/FixWrongVersionCheck
Fix Wrong Version Check in plugin store
2 parents f2717be + 805af30 commit 2093784

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Flow.Launcher/ViewModel/PluginStoreItemViewModel.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,19 @@ public PluginStoreItemViewModel(UserPlugin plugin)
2626
public string IcoPath => _plugin.IcoPath;
2727

2828
public bool LabelInstalled => PluginManager.GetPluginForId(_plugin.ID) != null;
29-
public bool LabelUpdate => LabelInstalled && _plugin.Version != PluginManager.GetPluginForId(_plugin.ID).Metadata.Version;
29+
public bool LabelUpdate => LabelInstalled && VersionConvertor(_plugin.Version) > VersionConvertor(PluginManager.GetPluginForId(_plugin.ID).Metadata.Version);
3030

3131
internal const string None = "None";
3232
internal const string RecentlyUpdated = "RecentlyUpdated";
3333
internal const string NewRelease = "NewRelease";
3434
internal const string Installed = "Installed";
3535

36+
public Version VersionConvertor(string version)
37+
{
38+
Version ResultVersion = new Version(version);
39+
return ResultVersion;
40+
}
41+
3642
public string Category
3743
{
3844
get

0 commit comments

Comments
 (0)