From d9ba38b3221174996201f8df2b1a93a9000e00e5 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Fri, 21 Feb 2025 13:09:19 +0800 Subject: [PATCH] Fix issue that plugin cannot update ActionKeyword after changing its action keywords --- Flow.Launcher.Core/Plugin/PluginManager.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Flow.Launcher.Core/Plugin/PluginManager.cs b/Flow.Launcher.Core/Plugin/PluginManager.cs index 8c62c2f02..e4ecf0f40 100644 --- a/Flow.Launcher.Core/Plugin/PluginManager.cs +++ b/Flow.Launcher.Core/Plugin/PluginManager.cs @@ -405,6 +405,17 @@ namespace Flow.Launcher.Core.Plugin { RemoveActionKeyword(id, actionKeyword); } + + // Update action keyword in plugin metadata + var plugin = GetPluginForId(id); + if (newActionKeyword.Count > 0) + { + plugin.Metadata.ActionKeyword = newActionKeyword[0]; + } + else + { + plugin.Metadata.ActionKeyword = string.Empty; + } } }