Refactor plugin loading. All active plugins must now be listed in torch.cfg

This commit is contained in:
Brant Martin
2019-05-03 21:39:56 -04:00
parent c7651c9949
commit 9813d6946a
6 changed files with 109 additions and 60 deletions

View File

@@ -90,6 +90,7 @@ namespace Torch.Server.Views
private void DownloadButton_OnClick(object sender, RoutedEventArgs e)
{
var item = CurrentItem;
TorchBase.Instance.Config.Plugins.Add(new Guid(item.ID));
Task.Run(async () =>
{
var result = await PluginQuery.Instance.DownloadPlugin(item.ID);