Philipp Hörist pushed to branch mainwindow at gajim / gajim
Commits:
-
650ae662
by lovetox at 2021-04-29T20:47:38+02:00
1 changed file:
Changes:
| ... | ... | @@ -123,10 +123,6 @@ def _on_button_release(paned, event): |
| 123 | 123 |
def _on_chat_selected(self, _chat_list_stack, workspace_id, account, jid):
|
| 124 | 124 |
self._chat_stack.show_chat(account, jid)
|
| 125 | 125 |
self._search_view.set_context(account, jid)
|
| 126 |
- |
|
| 127 |
- self._ui.workspace_label.set_text(
|
|
| 128 |
- app.settings.get_workspace_setting(workspace_id, 'name'))
|
|
| 129 |
- |
|
| 130 | 126 |
self.emit('chat-selected', workspace_id, account, jid)
|
| 131 | 127 |
|
| 132 | 128 |
def _on_chat_unselected(self, _chat_list_stack):
|
| ... | ... | @@ -143,7 +139,11 @@ def _on_search_history(self, _action, _param): |
| 143 | 139 |
def _on_search_hide(self, *args):
|
| 144 | 140 |
self._search_revealer.hide()
|
| 145 | 141 |
|
| 146 |
- def _on_chat_list_changed(self, *args):
|
|
| 142 |
+ def _on_chat_list_changed(self, chat_list_stack, *args):
|
|
| 143 |
+ chat_list = chat_list_stack.get_current_chat_list()
|
|
| 144 |
+ name = app.settings.get_workspace_setting(chat_list.workspace_id,
|
|
| 145 |
+ 'name')
|
|
| 146 |
+ self._ui.workspace_label.set_text(name)
|
|
| 147 | 147 |
self._ui.search_entry.set_text('')
|
| 148 | 148 |
|
| 149 | 149 |
def process_event(self, event):
|