Make system plugins shown as system plugins

fixes #2741
This commit is contained in:
Kukks 2021-08-04 16:50:25 +02:00
parent 59d0cf666f
commit 4e56ef636b

View File

@ -55,11 +55,14 @@ namespace BTCPayServer.Plugins
continue;
}
foreach (var btcPayServerPlugin in detectedPlugins)
detectedPlugins = detectedPlugins.Select(plugin =>
{
btcPayServerPlugin.SystemPlugin = true;
loadedPlugins.Add((null,systemExtension, CreateEmbeddedFileProviderForAssembly(systemExtension)));
}
plugin.SystemPlugin = true;
return plugin;
});
loadedPlugins.Add((null,systemExtension, CreateEmbeddedFileProviderForAssembly(systemExtension)));
plugins.AddRange(detectedPlugins);
}
var orderFilePath = Path.Combine(pluginsFolder, "order");