Skip to content

Commit 9b8ba7a

Browse files
committed
[API] Escape ActionKeywords duplicates
1 parent fd3576d commit 9b8ba7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Flow.Launcher.Core/Plugin/PluginManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,8 @@ public static void AddActionKeyword(string id, string newActionKeyword)
364364
{
365365
NonGlobalPlugins[newActionKeyword] = plugin;
366366
}
367-
368-
plugin.Metadata.ActionKeywords.Add(newActionKeyword);
367+
if (!plugin.Metadata.ActionKeywords.Contains(newActionKeyword))
368+
plugin.Metadata.ActionKeywords.Add(newActionKeyword);
369369
}
370370

371371
/// <summary>

0 commit comments

Comments
 (0)