Philipp Hörist pushed to branch master at gajim / gajim
Commits: 9300b239 by wurstsalat at 2022-09-29T17:29:55+00:00 perf: SearchView: Speed up clearing of search results Fixes #11158 - - - - - 1 changed file: - gajim/gtk/search_view.py Changes: ===================================== gajim/gtk/search_view.py ===================================== @@ -107,10 +107,15 @@ def clear(self) -> None: self._clear_results() def _clear_results(self) -> None: + # Unset the header_func to reduce load when clearing + self._ui.results_listbox.set_header_func(None) + for row in self._ui.results_listbox.get_children(): self._ui.results_listbox.remove(row) row.destroy() + self._ui.results_listbox.set_header_func(self._header_func) + def _on_search(self, entry: Gtk.Entry) -> None: self._clear_results() self._ui.date_hint.hide() View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/9300b23922fd170e8ee759c690c4b9925c523739 -- View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/9300b23922fd170e8ee759c690c4b9925c523739 You're receiving this email because of your account on dev.gajim.org.
_______________________________________________ Commits mailing list Commits@gajim.org https://lists.gajim.org/cgi-bin/listinfo/commits