Skip to content

Commit 2c73a5b

Browse files
committed
return null if not a plugin activated
1 parent 007a3ea commit 2c73a5b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -558,10 +558,9 @@ private async void QueryResults()
558558

559559
var plugins = PluginManager.ValidPluginsForQuery(query);
560560

561-
if (plugins.Count == 1)
562-
{
563-
PluginIconPath = plugins.Single().Metadata.IcoPath;
564-
}
561+
562+
PluginIconPath = plugins.Count == 1 ? plugins.Single().Metadata.IcoPath : PluginIconPath = null;
563+
565564

566565
if (query.ActionKeyword == Plugin.Query.GlobalPluginWildcardSign)
567566
{

0 commit comments

Comments
 (0)