Daniel Brötzmann pushed to branch mainwindow at gajim / gajim
Commits:
2811fe9c by wurstsalat at 2021-02-14T16:04:47+01:00
Add update_workspace method
- - - - -
2 changed files:
- gajim/gtk/main.py
- gajim/gtk/workspace_dialog.py
Changes:
=====================================
gajim/gtk/main.py
=====================================
@@ -360,6 +360,12 @@ def activate_workspace(self, workspace_id):
self._workspace_side_bar.activate_workspace(workspace_id)
self._chat_list_stack.show_chat_list(workspace_id)
+ def update_workspace(self, workspace_id):
+ name = app.settings.get_workspace_setting(workspace_id, 'name')
+ self._ui.workspace_label.set_text(name)
+ app.interface.avatar_storage.invalidate_cache(workspace_id)
+ self._workspace_side_bar.update_avatar(workspace_id)
+
def _add_group_chat(self, _action, param):
account, jid = param.unpack()
self.add_group_chat(account, jid)
=====================================
gajim/gtk/workspace_dialog.py
=====================================
@@ -115,9 +115,7 @@ def _on_save(self, _button):
app.settings.set_workspace_setting(
self._workspace_id, 'color', rgba.to_string())
- app.interface.avatar_storage.invalidate_cache(self._workspace_id)
- workspace_bar = app.window.get_workspace_bar()
- workspace_bar.update_avatar(self._workspace_id)
+ app.window.update_workspace(self._workspace_id)
self.destroy()
return
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/2811fe9c8ef85c5f8772e532a949c0fac770d349
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/2811fe9c8ef85c5f8772e532a949c0fac770d349
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