Commit 7e3ff2af authored by Dicson's avatar Dicson

PluginInstallerPlugin. Correctly detect switched page

parent c1999dd0
......@@ -269,7 +269,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')):
if not hasattr(self, 'ftp'):
self.ftp = Ftp(self)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment