mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Fix another problem with component change
This commit is contained in:
parent
5945b24476
commit
c6caae848f
1 changed files with 2 additions and 2 deletions
|
@ -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.get_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"]:
|
||||||
|
@ -153,7 +153,7 @@ class PluginManagerBase:
|
||||||
"""Disables a plugin"""
|
"""Disables a plugin"""
|
||||||
try:
|
try:
|
||||||
self.plugins[name].disable()
|
self.plugins[name].disable()
|
||||||
component.deregister(self.plugins[name].plugin.get_component_name())
|
component.deregister(self.plugins[name].plugin._component_name)
|
||||||
del self.plugins[name]
|
del self.plugins[name]
|
||||||
self.config["enabled_plugins"].remove(name)
|
self.config["enabled_plugins"].remove(name)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue