Browse Source

Add an "activeMachine" property to MachineManager

Directly exposes the global container stack to QML.
Arjen Hiemstra 8 years ago
parent
commit
7eb5441ebc
1 changed files with 4 additions and 0 deletions
  1. 4 0
      cura/Settings/MachineManager.py

+ 4 - 0
cura/Settings/MachineManager.py

@@ -495,6 +495,10 @@ class MachineManager(QObject):
 
         return ""
 
+    @pyqtProperty("QObject", notify = globalContainerChanged)
+    def activeMachine(self) -> GlobalStack:
+        return self._global_container_stack
+
     @pyqtProperty(str, notify = activeStackChanged)
     def activeStackId(self) -> str:
         if self._active_container_stack: