Skip to content

Commit 007a3ea

Browse files
committed
Trigger on plugin
1 parent df97be7 commit 007a3ea

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,8 @@ private ResultsViewModel SelectedResults
395395

396396
public double MainWindowWidth => _settings.WindowSize;
397397

398+
public string PluginIconPath { get; set; } = null;
399+
398400
public ICommand EscCommand { get; set; }
399401
public ICommand SelectNextItemCommand { get; set; }
400402
public ICommand SelectPrevItemCommand { get; set; }
@@ -556,6 +558,11 @@ private async void QueryResults()
556558

557559
var plugins = PluginManager.ValidPluginsForQuery(query);
558560

561+
if (plugins.Count == 1)
562+
{
563+
PluginIconPath = plugins.Single().Metadata.IcoPath;
564+
}
565+
559566
if (query.ActionKeyword == Plugin.Query.GlobalPluginWildcardSign)
560567
{
561568
// Wait 45 millisecond for query change in global query

0 commit comments

Comments
 (0)