File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -26,13 +26,19 @@ public PluginStoreItemViewModel(UserPlugin plugin)
26
26
public string IcoPath => _plugin . IcoPath ;
27
27
28
28
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 ) ;
30
30
31
31
internal const string None = "None" ;
32
32
internal const string RecentlyUpdated = "RecentlyUpdated" ;
33
33
internal const string NewRelease = "NewRelease" ;
34
34
internal const string Installed = "Installed" ;
35
35
36
+ public Version VersionConvertor ( string version )
37
+ {
38
+ Version ResultVersion = new Version ( version ) ;
39
+ return ResultVersion ;
40
+ }
41
+
36
42
public string Category
37
43
{
38
44
get
You can’t perform that action at this time.
0 commit comments