Return account widget to it's former glory

This commit is contained in:
Jaime van Kessel 2022-03-31 14:19:41 +02:00
parent af712785c8
commit 124602d2ad
3 changed files with 5 additions and 5 deletions

View file

@ -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)