Commit 99be71ce authored by Philipp Hörist's avatar Philipp Hörist

GroupchatInvite: Only load contacts when showing the page

Fixes #10055
parent bc3fa137
......@@ -511,7 +511,7 @@ def _on_information(self, _action, _param):
self._show_page('muc-info')
def _on_invite(self, _action, _param):
self._invite_box.update()
self._invite_box.load_contacts()
self._show_page('invite')
def _on_invite_ready(self, _, invitable):
......
......@@ -54,8 +54,6 @@ def __init__(self, room_jid):
self._new_contact_row_visible = False
self._room_jid = room_jid
self.update()
self._ui.search_entry.connect('search-changed',
self._on_search_changed)
self._ui.search_entry.connect('next-match',
......@@ -254,7 +252,7 @@ def _sort_func(row1, row2, _user_data):
return locale.strcoll(name1.lower(), name2.lower())
def update(self):
def load_contacts(self):
self._ui.contacts_listbox.foreach(self._ui.contacts_listbox.remove)
self._ui.invitees_listbox.foreach(self._ui.invitees_listbox.remove)
self._accounts = app.get_enabled_accounts_with_labels()
......
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