Only enable plugins that are enabled in the core.
This commit is contained in:
parent
02fe961a8a
commit
419333b9cb
|
@ -49,8 +49,7 @@ class PluginManager(deluge.pluginmanagerbase.PluginManagerBase,
|
||||||
"""Start the plugin manager"""
|
"""Start the plugin manager"""
|
||||||
# Update the enabled_plugins from the core
|
# Update the enabled_plugins from the core
|
||||||
enabled_plugins = client.get_enabled_plugins()
|
enabled_plugins = client.get_enabled_plugins()
|
||||||
enabled_plugins += self.config["enabled_plugins"]
|
log.debug("Core has these plugins enabled: %s", enabled_plugins)
|
||||||
enabled_plugins = list(set(enabled_plugins))
|
|
||||||
self.config["enabled_plugins"] = enabled_plugins
|
self.config["enabled_plugins"] = enabled_plugins
|
||||||
|
|
||||||
# Enable the plugins that are enabled in the config and core
|
# Enable the plugins that are enabled in the config and core
|
||||||
|
|
Loading…
Reference in New Issue