mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Register plugin action keywords when plugins are loaded
This commit is contained in:
parent
5ed94c8abc
commit
66fb1d7c60
1 changed files with 3 additions and 3 deletions
|
|
@ -246,6 +246,9 @@ namespace Flow.Launcher.Core.Plugin
|
|||
{
|
||||
var initTasks = _allLoadedPlugins.Select(pair => Task.Run(async () =>
|
||||
{
|
||||
// Register plugin action keywords so that plugins can be queried in results
|
||||
RegisterPluginActionKeywords(pair);
|
||||
|
||||
try
|
||||
{
|
||||
var milliseconds = await PublicApi.Instance.StopwatchLogDebugAsync(ClassName, $"Init method time cost for <{pair.Metadata.Name}>",
|
||||
|
|
@ -284,9 +287,6 @@ namespace Flow.Launcher.Core.Plugin
|
|||
// Update plugin metadata translation after the plugin is initialized with IPublicAPI instance
|
||||
Internationalization.UpdatePluginMetadataTranslation(pair);
|
||||
|
||||
// Register plugin action keywords so that plugins can be queried in results
|
||||
RegisterPluginActionKeywords(pair);
|
||||
|
||||
// Add plugin to Dialog Jump plugin list after the plugin is initialized
|
||||
DialogJump.InitializeDialogJumpPlugin(pair);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue