Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
27175d60 by wurstsalat at 2022-06-06T10:48:46+02:00
fix: WorkspaceDialog: Show correct settings for workspace if there is only one
Fixes #10950
- - - - -
1 changed file:
- gajim/gtk/workspace_dialog.py
Changes:
=====================================
gajim/gtk/workspace_dialog.py
=====================================
@@ -56,8 +56,12 @@ def __init__(self, workspace_id: Optional[str] = None) ->
None:
color: Optional[str] = None
self._avatar_sha: Optional[str] = None
- workspaces = app.settings.get_workspaces()
- if workspace_id is None or len(workspaces) == 1:
+ if len(app.settings.get_workspaces()) == 1:
+ # Don't allow to remove last workspace
+ self._ui.remove_workspace_button.set_sensitive(False)
+
+ if workspace_id is None:
+ # This is a new workspace
self._ui.remove_workspace_button.set_sensitive(False)
else:
name = app.settings.get_workspace_setting(
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/27175d60ddf5c029f0ada1fd63e65ebbad44fd20
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/27175d60ddf5c029f0ada1fd63e65ebbad44fd20
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