diff options
author | Jaime van Kessel <nallath@gmail.com> | 2022-03-31 15:19:41 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2022-03-31 15:19:41 +0300 |
commit | 124602d2ad0a5cb2f991f0aa65fc3eef5a24dc20 (patch) | |
tree | f5de3dc382839515df18655d29d1da4b91aae457 /cura/API | |
parent | af712785c8a0e88eb5b86c7f9dacbf7b5b69d12a (diff) |
Return account widget to it's former glory
Diffstat (limited to 'cura/API')
-rw-r--r-- | cura/API/Account.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cura/API/Account.py b/cura/API/Account.py index 993e53e539..b63983e0cc 100644 --- a/cura/API/Account.py +++ b/cura/API/Account.py @@ -269,10 +269,10 @@ class Account(QObject): return self._authorization_service.getAccessToken() @pyqtProperty("QVariantMap", notify = userProfileChanged) - def userProfile(self) -> Optional[Dict[str, Optional[str]]]: + def userProfile(self) -> Dict[str, Optional[str]]: """None if no user is logged in otherwise the logged in user as a dict containing containing user_id, username and profile_image_url """ if not self._user_profile: - return None + return {} return self._user_profile.__dict__ @pyqtProperty(str, notify=lastSyncDateTimeChanged) |