Philipp Hörist pushed to branch mainwindow at gajim / gajim


Commits:
650ae662 by lovetox at 2021-04-29T20:47:38+02:00
Fix workspace label

- - - - -


1 changed file:

- gajim/gtk/chat_page.py


Changes:

=====================================
gajim/gtk/chat_page.py
=====================================
@@ -123,10 +123,6 @@ def _on_button_release(paned, event):
     def _on_chat_selected(self, _chat_list_stack, workspace_id, account, jid):
         self._chat_stack.show_chat(account, jid)
         self._search_view.set_context(account, jid)
-
-        self._ui.workspace_label.set_text(
-            app.settings.get_workspace_setting(workspace_id, 'name'))
-
         self.emit('chat-selected', workspace_id, account, jid)
 
     def _on_chat_unselected(self, _chat_list_stack):
@@ -143,7 +139,11 @@ def _on_search_history(self, _action, _param):
     def _on_search_hide(self, *args):
         self._search_revealer.hide()
 
-    def _on_chat_list_changed(self, *args):
+    def _on_chat_list_changed(self, chat_list_stack, *args):
+        chat_list = chat_list_stack.get_current_chat_list()
+        name = app.settings.get_workspace_setting(chat_list.workspace_id,
+                                                  'name')
+        self._ui.workspace_label.set_text(name)
         self._ui.search_entry.set_text('')
 
     def process_event(self, event):



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

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/650ae662a13643feeff2f6a07bace29c6e968390
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

Reply via email to