diff options
author | Denis Fomin <fominde@gmail.com> | 2013-04-30 15:47:53 +0400 |
---|---|---|
committer | Denis Fomin <fominde@gmail.com> | 2013-04-30 15:47:53 +0400 |
commit | 9c50f64d1002c35b5341cac51a08520b7e531b5d (patch) | |
tree | 5be2e644e20da7a6b07495d6a9b19c62507ee4d2 | |
parent | e0df92a45c8e1501a32420ab58b97d4e228835ef (diff) |
PluginInstallerPlugin. Correctly detect switched page
-rw-r--r-- | plugin_installer/plugin_installer.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugin_installer/plugin_installer.py b/plugin_installer/plugin_installer.py index 0f8b668..7444f5d 100644 --- a/plugin_installer/plugin_installer.py +++ b/plugin_installer/plugin_installer.py @@ -270,7 +270,10 @@ class PluginInstaller(GajimPlugin): self.inslall_upgrade_button.set_property('sensitive', True) def on_notebook_switch_page(self, widget, page, page_num): - if not hasattr(self, 'ftp') and self.page_num == page_num: + tab_label_text = self.notebook.get_tab_label_text(self.hpaned) + if tab_label_text != (_('Available')): + return + if not hasattr(self, 'ftp'): self.available_plugins_model.clear() self.progressbar.show() self.ftp = Ftp(self) |