Skip to content

Commit 900966d

Browse files
committed
Change the logic for logging in with profiles
This includes a major refactoring of WorkspaceView that was necessary to handle more connection states. In particular, we have to support the situation in which no profile is selected, so it is not clear what to connect to.
1 parent 6fbcad5 commit 900966d

File tree

4 files changed

+437
-459
lines changed

4 files changed

+437
-459
lines changed

LoginWidget.ui

Lines changed: 0 additions & 115 deletions
This file was deleted.

Workspace.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ def __init__(self, workspaceDict, **kwargs):
9696
self._id = workspaceDict["_id"]
9797

9898
self.name = workspaceDict["name"]
99-
self.path = CACHE_PATH + self._id
99+
profile_path = Utils.joinPath(CACHE_PATH, kwargs.get("profile_name", ""))
100+
self.path = Utils.joinPath(profile_path, self._id)
100101
self.subPath = kwargs.get("subPath", "")
101102
self.files = []
102103

0 commit comments

Comments
 (0)