long candy support
This commit is contained in:
@@ -40,9 +40,8 @@ public class PluginLoader:IVisionBuilderModule
|
||||
|
||||
if (_settings.Plugins.All(p => p.Name != pluginName))
|
||||
{
|
||||
Log.Warning("Discovered new plugin:{PluginName}. Adding to settings and skipping.", pluginName);
|
||||
_settings.Plugins.Add(new PluginSettings.PluginFlag { Name = pluginName, Enabled = false });
|
||||
continue;
|
||||
Log.Warning("Discovered new plugin:{PluginName}. Adding to settings.", pluginName);
|
||||
_settings.AddPlugin(new PluginSettings.PluginFlag { Name = pluginName, Enabled = false });
|
||||
}
|
||||
|
||||
if (_settings.Plugins.Where(p => p.Name == pluginName).All(x=>!x.Enabled))
|
||||
@@ -82,7 +81,7 @@ public class PluginLoader:IVisionBuilderModule
|
||||
if (type.IsAssignableTo(typeof(IPlugin)) && !type.IsAbstract)
|
||||
{
|
||||
Plugins.Add((IPlugin)Activator.CreateInstance(type));
|
||||
Log.Information("Loaded plugin: {PluginName}", type.Name);
|
||||
Log.Information("Loaded plugin: {PluginName}", type.FullName);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user