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/API
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2021-11-22 18:30:03 +0300
committerGhostkeeper <rubend@tutanota.com>2021-11-22 18:30:03 +0300
commit1cdeb7d56b01cb1a5997874801628aa7195513fd (patch)
tree62937368f7beba963609f256404b60e9076c2624 /cura/API
parent0196fd54ea1129f74426c3b4ade726f2e3a56cd1 (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.py2
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()