Skip to content

Commit d9ba38b

Browse files
committed
Fix issue that plugin cannot update ActionKeyword after changing its action keywords
1 parent abfeee1 commit d9ba38b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Flow.Launcher.Core/Plugin/PluginManager.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,17 @@ public static void ReplaceActionKeyword(string id, IReadOnlyList<string> oldActi
405405
{
406406
RemoveActionKeyword(id, actionKeyword);
407407
}
408+
409+
// Update action keyword in plugin metadata
410+
var plugin = GetPluginForId(id);
411+
if (newActionKeyword.Count > 0)
412+
{
413+
plugin.Metadata.ActionKeyword = newActionKeyword[0];
414+
}
415+
else
416+
{
417+
plugin.Metadata.ActionKeyword = string.Empty;
418+
}
408419
}
409420
}
410421

0 commit comments

Comments
 (0)