mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 13:34:01 -06:00
Typing: When the user profile changes, it may also become None
This happens when logging out. Contributes to issue CURA-8539.
This commit is contained in:
parent
0196fd54ea
commit
1cdeb7d56b
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue