Philipp Hörist pushed to branch master at gajim / gajim
Commits: 4cd448de by lovetox at 2020-06-16T22:56:32+02:00 StartChat: Improve global muc search
- Don't clear the search entry when pressing the global search button - Start a search automatically after pressing the button
- - - - -
1 changed file:
- gajim/gtk/start_chat.py
Changes:
===================================== gajim/gtk/start_chat.py ===================================== @@ -370,15 +370,17 @@ class StartChatDialog(Gtk.ApplicationWindow): return box == Search.GLOBAL
def _on_global_search_toggle(self, button): - self._ui.search_entry.set_text('') self._ui.search_entry.grab_focus() image_style_context = button.get_children()[0].get_style_context() if button.get_active(): image_style_context.add_class('selected-color') self._set_listbox(self._global_search_listbox) + if self._ui.search_entry.get_text(): + self._start_search() self._remove_new_jid_row() self._ui.listbox.invalidate_filter() else: + self._ui.search_entry.set_text('') image_style_context.remove_class('selected-color') self._set_listbox(self._ui.listbox) self._global_search_listbox.remove_all()
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/4cd448de8f7a4e3d70fe5d7fcb3797127...