mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 12:34:43 +00:00
Fix #1474 : on_show_prefs hook is not executed immediatly after enabling a plugin
This commit is contained in:
parent
6fe350fa52
commit
e90e608fdd
@ -405,7 +405,6 @@ class GtkUI(GtkPluginBase):
|
||||
component.get("Preferences").add_page(
|
||||
_("AutoAdd"), self.glade.get_widget("prefs_box")
|
||||
)
|
||||
self.on_show_prefs()
|
||||
|
||||
def disable(self):
|
||||
component.get("Preferences").remove_page(_("AutoAdd"))
|
||||
|
@ -93,6 +93,7 @@ class PluginManager(deluge.pluginmanagerbase.PluginManagerBase,
|
||||
|
||||
def _on_plugin_enabled_event(self, name):
|
||||
self.enable_plugin(name)
|
||||
self.run_on_show_prefs()
|
||||
|
||||
def _on_plugin_disabled_event(self, name):
|
||||
self.disable_plugin(name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user