From 2c73a5b9c05a7b6b3ab4fe8675abfa13c415eb33 Mon Sep 17 00:00:00 2001 From: Garulf <535299+Garulf@users.noreply.github.com> Date: Fri, 17 Dec 2021 06:29:08 -0500 Subject: [PATCH] return null if not a plugin activated --- Flow.Launcher/ViewModel/MainViewModel.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs index 605330d13..fee8b7280 100644 --- a/Flow.Launcher/ViewModel/MainViewModel.cs +++ b/Flow.Launcher/ViewModel/MainViewModel.cs @@ -558,10 +558,9 @@ namespace Flow.Launcher.ViewModel var plugins = PluginManager.ValidPluginsForQuery(query); - if (plugins.Count == 1) - { - PluginIconPath = plugins.Single().Metadata.IcoPath; - } + + PluginIconPath = plugins.Count == 1 ? plugins.Single().Metadata.IcoPath : PluginIconPath = null; + if (query.ActionKeyword == Plugin.Query.GlobalPluginWildcardSign) {