mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
Fix #1474 : on_show_prefs hook is not executed immediatly after enabling a plugin
This commit is contained in:
parent
f447bd5cea
commit
a3a9cae9f7
2 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,6 @@ class GtkUI(GtkPluginBase):
|
|||
sw.add(self.treeView)
|
||||
sw.show_all()
|
||||
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"))
|
||||
|
|
|
@ -91,6 +91,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…
Add table
Reference in a new issue