Correct signature of activeMachine

Because there isn't always a global container stack.

Contributes to issue CURA-4357.
This commit is contained in:
Ghostkeeper 2017-09-22 11:11:34 +02:00
parent 21ea99d9f2
commit 88155d35e8
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75

View file

@ -475,7 +475,7 @@ class MachineManager(QObject):
return "" return ""
@pyqtProperty(QObject, notify = globalContainerChanged) @pyqtProperty(QObject, notify = globalContainerChanged)
def activeMachine(self) -> "GlobalStack": def activeMachine(self) -> Optional["GlobalStack"]:
return self._global_container_stack return self._global_container_stack
@pyqtProperty(str, notify = activeStackChanged) @pyqtProperty(str, notify = activeStackChanged)