Fix #1474 : on_show_prefs hook is not executed immediatly after enabling a plugin

This commit is contained in:
Calum Lind 2012-11-27 22:47:03 +00:00
parent 6fe350fa52
commit e90e608fdd
2 changed files with 1 additions and 1 deletions

View File

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

View File

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