Fix starting plugins
This commit is contained in:
parent
8d02fc3db6
commit
70580e35db
|
@ -140,7 +140,7 @@ class PluginManagerBase:
|
|||
continue
|
||||
instance.enable()
|
||||
if self._component_state == "Started":
|
||||
component.start(instance.plugin._component_name)
|
||||
component.start([instance.plugin._component_name])
|
||||
plugin_name = plugin_name.replace("-", " ")
|
||||
self.plugins[plugin_name] = instance
|
||||
if plugin_name not in self.config["enabled_plugins"]:
|
||||
|
|
|
@ -75,7 +75,7 @@ class PluginManager(deluge.pluginmanagerbase.PluginManagerBase,
|
|||
# Update the enabled_plugins from the core
|
||||
client.core.get_enabled_plugins().addCallback(self._on_get_enabled_plugins)
|
||||
for instance in self.plugins.values():
|
||||
component.start(instance.plugin._component_name)
|
||||
component.start([instance.plugin._component_name])
|
||||
|
||||
def stop(self):
|
||||
# Disable the plugins
|
||||
|
|
Loading…
Reference in New Issue