Fix starting plugins

This commit is contained in:
Andrew Resch 2010-04-20 08:56:07 -07:00
parent 8d02fc3db6
commit 70580e35db
2 changed files with 2 additions and 2 deletions

View File

@ -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"]:

View File

@ -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