mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix Install Button
This commit is contained in:
parent
e3e0545c9d
commit
b7e51e5e69
2 changed files with 6 additions and 5 deletions
|
|
@ -306,7 +306,7 @@ namespace Flow.Launcher
|
|||
|
||||
private void OnExternalPluginInstallClick(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (sender is Button { DataContext: UserPlugin plugin })
|
||||
if (sender is Button { DataContext: PluginStoreItemViewModel plugin })
|
||||
{
|
||||
var pluginsManagerPlugin = PluginManager.GetPluginForId("9f8f9b14-2518-4907-b211-35ab6290dee7");
|
||||
var actionKeyword = pluginsManagerPlugin.Metadata.ActionKeywords.Count == 0 ? "" : pluginsManagerPlugin.Metadata.ActionKeywords[0];
|
||||
|
|
|
|||
|
|
@ -14,16 +14,17 @@ namespace Flow.Launcher.ViewModel
|
|||
|
||||
private UserPlugin _plugin;
|
||||
|
||||
public string ID => _plugin.ID;
|
||||
public string Name => _plugin.Name;
|
||||
public string Description => _plugin.Description;
|
||||
public string IcoPath => _plugin.IcoPath;
|
||||
public string Author => _plugin.Author;
|
||||
public string Website => _plugin.Website;
|
||||
public string Version => _plugin.Version;
|
||||
public string Language => _plugin.Language;
|
||||
public string Website => _plugin.Website;
|
||||
public string UrlDownload => _plugin.UrlDownload;
|
||||
public string UrlSourceCode => _plugin.UrlSourceCode;
|
||||
public string Version => _plugin.Version;
|
||||
|
||||
public string IcoPath => _plugin.IcoPath;
|
||||
|
||||
public bool LabelNew => _plugin.LatestReleaseDate-DateTime.Now < TimeSpan.FromDays(7);
|
||||
public bool LabelInstalled => PluginManager.GetPluginForId(_plugin.ID) != null;
|
||||
public bool LabelUpdated => _plugin.DateAdded -DateTime.Now < TimeSpan.FromDays(5) && !LabelNew;
|
||||
|
|
|
|||
Loading…
Reference in a new issue