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