Daniel Brötzmann pushed to branch mainwindow at gajim / gajim


Commits:
b5682727 by wurstsalat at 2021-07-18T16:30:28+02:00
SearchView: Improve behavior when unselecting chat

- - - - -


2 changed files:

- gajim/gtk/chat_page.py
- gajim/gtk/search_view.py


Changes:

=====================================
gajim/gtk/chat_page.py
=====================================
@@ -132,6 +132,7 @@ def _on_chat_selected(self, _chat_list_stack, workspace_id, 
account, jid):
 
     def _on_chat_unselected(self, _chat_list_stack):
         self._chat_stack.clear()
+        self._search_view.set_context(None, None)
 
     def _on_search_history(self, _action, _param):
         control = self.get_active_control()


=====================================
gajim/gtk/search_view.py
=====================================
@@ -179,7 +179,7 @@ def set_focus(self):
     def set_context(self, account, jid):
         self._account = account
         self._jid = jid
-        self._ui.search_checkbutton.set_active(False)
+        self._ui.search_checkbutton.set_active(jid is None)
 
 
 class RowHeader(Gtk.Box):



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/b56827279886abb5c0e540dab9716e620a1150c0

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/b56827279886abb5c0e540dab9716e620a1150c0
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to