Skip to content

Commit b7e51e5

Browse files
committed
Fix Install Button
1 parent e3e0545 commit b7e51e5

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Flow.Launcher/SettingWindow.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ private void OnPluginStoreRefreshClick(object sender, RoutedEventArgs e)
306306

307307
private void OnExternalPluginInstallClick(object sender, RoutedEventArgs e)
308308
{
309-
if (sender is Button { DataContext: UserPlugin plugin })
309+
if (sender is Button { DataContext: PluginStoreItemViewModel plugin })
310310
{
311311
var pluginsManagerPlugin = PluginManager.GetPluginForId("9f8f9b14-2518-4907-b211-35ab6290dee7");
312312
var actionKeyword = pluginsManagerPlugin.Metadata.ActionKeywords.Count == 0 ? "" : pluginsManagerPlugin.Metadata.ActionKeywords[0];

Flow.Launcher/ViewModel/PluginStoreItemViewModel.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,17 @@ public PluginStoreItemViewModel(UserPlugin plugin)
1414

1515
private UserPlugin _plugin;
1616

17+
public string ID => _plugin.ID;
1718
public string Name => _plugin.Name;
1819
public string Description => _plugin.Description;
19-
public string IcoPath => _plugin.IcoPath;
2020
public string Author => _plugin.Author;
21-
public string Website => _plugin.Website;
21+
public string Version => _plugin.Version;
2222
public string Language => _plugin.Language;
23+
public string Website => _plugin.Website;
2324
public string UrlDownload => _plugin.UrlDownload;
2425
public string UrlSourceCode => _plugin.UrlSourceCode;
25-
public string Version => _plugin.Version;
26-
26+
public string IcoPath => _plugin.IcoPath;
27+
2728
public bool LabelNew => _plugin.LatestReleaseDate-DateTime.Now < TimeSpan.FromDays(7);
2829
public bool LabelInstalled => PluginManager.GetPluginForId(_plugin.ID) != null;
2930
public bool LabelUpdated => _plugin.DateAdded -DateTime.Now < TimeSpan.FromDays(5) && !LabelNew;

0 commit comments

Comments
 (0)