mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 19:57:57 +01:00
Divide load and initialize of plugins into two stages (#10650)
This commit is contained in:
@@ -128,9 +128,9 @@ namespace PowerLauncher.Plugin
|
||||
return;
|
||||
}
|
||||
|
||||
pair.LoadPlugin(API);
|
||||
pair.InitializePlugin(API);
|
||||
|
||||
if (!pair.IsPluginLoaded)
|
||||
if (!pair.IsPluginInitialized)
|
||||
{
|
||||
failedPlugins.Enqueue(pair);
|
||||
}
|
||||
@@ -159,7 +159,7 @@ namespace PowerLauncher.Plugin
|
||||
throw new ArgumentNullException(nameof(pair));
|
||||
}
|
||||
|
||||
if (!pair.IsPluginLoaded)
|
||||
if (!pair.IsPluginInitialized)
|
||||
{
|
||||
return new List<Result>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user