Add an "activeMachine" property to MachineManager

Directly exposes the global container stack to QML.
This commit is contained in:
Arjen Hiemstra 2017-04-04 17:39:57 +02:00
parent 47a388fd2c
commit 7eb5441ebc

View file

@ -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: