From a97542e649eddb9754d48a9e8af832f413cb1a0f Mon Sep 17 00:00:00 2001 From: John Gross Date: Thu, 14 Sep 2017 21:09:20 -0700 Subject: [PATCH] Add "Open Folder" functionality to plugins tab, crash-safe plugin updating --- Torch.API/Plugins/PluginAttribute.cs | 2 +- Torch.Server/Views/PluginsControl.xaml | 4 +- Torch.Server/Views/PluginsControl.xaml.cs | 15 ++++- Torch/{Managers => Plugins}/PluginManager.cs | 63 ++++++++++++-------- Torch/{ => Plugins}/PluginManifest.cs | 21 ++++++- Torch/Torch.csproj | 4 +- 6 files changed, 76 insertions(+), 33 deletions(-) rename Torch/{Managers => Plugins}/PluginManager.cs (84%) rename Torch/{ => Plugins}/PluginManifest.cs (63%) diff --git a/Torch.API/Plugins/PluginAttribute.cs b/Torch.API/Plugins/PluginAttribute.cs index 4142ce3..d8c1297 100644 --- a/Torch.API/Plugins/PluginAttribute.cs +++ b/Torch.API/Plugins/PluginAttribute.cs @@ -10,7 +10,7 @@ namespace Torch.API.Plugins /// /// Indicates that the given type should be loaded by the plugin manager as a plugin. /// - [Obsolete] + [Obsolete("All plugin meta-information is now defined in the manifest.xml.")] [AttributeUsage(AttributeTargets.Class)] public class PluginAttribute : Attribute { diff --git a/Torch.Server/Views/PluginsControl.xaml b/Torch.Server/Views/PluginsControl.xaml index a9f343e..f0bc7a4 100644 --- a/Torch.Server/Views/PluginsControl.xaml +++ b/Torch.Server/Views/PluginsControl.xaml @@ -12,7 +12,7 @@ - + @@ -27,7 +27,7 @@ -