Commit 1cb65063 authored by Philipp Hörist's avatar Philipp Hörist

[plugin_installer] Fix opening available page on update

parent 7c224385
...@@ -129,8 +129,7 @@ class PluginInstaller(GajimPlugin): ...@@ -129,8 +129,7 @@ class PluginInstaller(GajimPlugin):
if is_checked: if is_checked:
self.config['auto_update'] = True self.config['auto_update'] = True
get_action('plugins').activate() get_action('plugins').activate()
page = self.notebook.page_num(self._ui.available_plugins_box) self._available_page.show_page()
self.notebook.set_current_page(page)
plugins_str = '\n' + '\n'.join([plugin.name for plugin in plugins]) plugins_str = '\n' + '\n'.join([plugin.name for plugin in plugins])
NewConfirmationCheckDialog( NewConfirmationCheckDialog(
......
...@@ -52,6 +52,9 @@ class AvailablePage(Observable): ...@@ -52,6 +52,9 @@ class AvailablePage(Observable):
self._plugin = None self._plugin = None
self.disconnect_signals() self.disconnect_signals()
def show_page(self):
self._notebook.set_current_page(self._page_num)
def append_plugins(self, plugins): def append_plugins(self, plugins):
for plugin in plugins: for plugin in plugins:
self._ui.plugin_store.append(plugin.fields) self._ui.plugin_store.append(plugin.fields)
......
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