mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix issue that plugin cannot update ActionKeyword after changing its action keywords
This commit is contained in:
parent
abfeee1423
commit
d9ba38b322
1 changed files with 11 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue