diff options
author | Ghostkeeper <rubend@tutanota.com> | 2021-11-22 18:30:03 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2021-11-22 18:30:03 +0300 |
commit | 1cdeb7d56b01cb1a5997874801628aa7195513fd (patch) | |
tree | 62937368f7beba963609f256404b60e9076c2624 /cura/API | |
parent | 0196fd54ea1129f74426c3b4ade726f2e3a56cd1 (diff) |
Typing: When the user profile changes, it may also become None
This happens when logging out.
Contributes to issue CURA-8539.
Diffstat (limited to 'cura/API')
-rw-r--r-- | cura/API/Account.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cura/API/Account.py b/cura/API/Account.py index 94b28e7b64..fa42c3c44d 100644 --- a/cura/API/Account.py +++ b/cura/API/Account.py @@ -207,7 +207,7 @@ class Account(QObject): if self._update_timer.isActive(): self._update_timer.stop() - def _onProfileChanged(self, profile: UserProfile) -> None: + def _onProfileChanged(self, profile: Optional[UserProfile]) -> None: self._user_profile = profile self.userProfileChanged.emit() |