mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 23:19:01 +08: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
@ -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…
x
Reference in New Issue
Block a user