mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Remove system plugins from the plugin list (#4429)
This commit is contained in:
@@ -123,8 +123,12 @@ namespace BTCPayServer.Plugins
|
||||
_plugins.Add(plugin);
|
||||
var fileProvider = CreateEmbeddedFileProviderForAssembly(pluginAssembly);
|
||||
loadedPlugins.Add((plugin, pluginAssembly, fileProvider));
|
||||
plugins.AddRange(GetAllPluginTypesFromAssembly(pluginAssembly)
|
||||
.Select(GetPluginInstanceFromType));
|
||||
foreach (var p in GetAllPluginTypesFromAssembly(pluginAssembly)
|
||||
.Select(GetPluginInstanceFromType))
|
||||
{
|
||||
p.SystemPlugin = false;
|
||||
plugins.Add(p);
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception e)
|
||||
|
||||
Reference in New Issue
Block a user