mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06: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
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue