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