Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cura
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2022-03-31 15:19:41 +0300
committerJaime van Kessel <nallath@gmail.com>2022-03-31 15:19:41 +0300
commit124602d2ad0a5cb2f991f0aa65fc3eef5a24dc20 (patch)
treef5de3dc382839515df18655d29d1da4b91aae457 /cura
parentaf712785c8a0e88eb5b86c7f9dacbf7b5b69d12a (diff)
Return account widget to it's former glory
Diffstat (limited to 'cura')
-rw-r--r--cura/API/Account.py4
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)