mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07: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():
|
if self._update_timer.isActive():
|
||||||
self._update_timer.stop()
|
self._update_timer.stop()
|
||||||
|
|
||||||
def _onProfileChanged(self, profile: UserProfile) -> None:
|
def _onProfileChanged(self, profile: Optional[UserProfile]) -> None:
|
||||||
self._user_profile = profile
|
self._user_profile = profile
|
||||||
self.userProfileChanged.emit()
|
self.userProfileChanged.emit()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue