mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 07:56:22 -06:00
Fix two "critical errors" on startup
CuraMachineManager.isGlobalStackValid would return None on startup, which qml does not like. CURA-1585
This commit is contained in:
parent
58ae1e923c
commit
fea534509e
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ class MachineManagerModel(QObject):
|
||||||
# Calling _checkStackForErrors on every change is simply too expensive
|
# Calling _checkStackForErrors on every change is simply too expensive
|
||||||
@pyqtProperty(bool, notify = globalValidationChanged)
|
@pyqtProperty(bool, notify = globalValidationChanged)
|
||||||
def isGlobalStackValid(self):
|
def isGlobalStackValid(self):
|
||||||
return self._global_stack_valid
|
return bool(self._global_stack_valid)
|
||||||
|
|
||||||
@pyqtProperty(str, notify = activeStackChanged)
|
@pyqtProperty(str, notify = activeStackChanged)
|
||||||
def activeUserProfileId(self):
|
def activeUserProfileId(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue