mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
fix duplicate query searches from same global action keywords
This commit is contained in:
parent
08d428ea13
commit
c5167cb5e5
1 changed files with 3 additions and 1 deletions
|
|
@ -118,7 +118,9 @@ namespace Flow.Launcher.Core.Plugin
|
|||
_contextMenuPlugins = GetPluginsForInterface<IContextMenu>();
|
||||
foreach (var plugin in AllPlugins)
|
||||
{
|
||||
foreach (var actionKeyword in plugin.Metadata.ActionKeywords)
|
||||
// set distinct on each plugin's action keywords helps only firing global(*) and action keywords once where a plugin
|
||||
// has multiple global and action keywords because we will only add them here once.
|
||||
foreach (var actionKeyword in plugin.Metadata.ActionKeywords.Distinct())
|
||||
{
|
||||
switch (actionKeyword)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue