mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -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 ""
|
||||
|
||||
@pyqtProperty(QObject, notify = globalContainerChanged)
|
||||
def activeMachine(self) -> "GlobalStack":
|
||||
def activeMachine(self) -> Optional["GlobalStack"]:
|
||||
return self._global_container_stack
|
||||
|
||||
@pyqtProperty(str, notify = activeStackChanged)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue