mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix Wrong Version Check
This commit is contained in:
parent
6869aeea83
commit
805af30cde
1 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue