mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 12:36:02 +08:00
Correct signature of activeMachine
Because there isn't always a global container stack. Contributes to issue CURA-4357.
This commit is contained in:
parent
21ea99d9f2
commit
88155d35e8
@ -475,7 +475,7 @@ class MachineManager(QObject):
|
||||
return ""
|
||||
|
||||
@pyqtProperty(QObject, notify = globalContainerChanged)
|
||||
def activeMachine(self) -> "GlobalStack":
|
||||
def activeMachine(self) -> Optional["GlobalStack"]:
|
||||
return self._global_container_stack
|
||||
|
||||
@pyqtProperty(str, notify = activeStackChanged)
|
||||
|
Loading…
x
Reference in New Issue
Block a user