Added status icon

This commit is contained in:
Ian Paschal 2018-03-08 10:55:29 +01:00
parent 4c7ec3920d
commit ffccdd99c0
4 changed files with 26 additions and 10 deletions

View file

@ -469,6 +469,12 @@ class MachineManager(QObject):
return self._global_container_stack.getId()
return ""
@pyqtProperty(str, notify = globalContainerChanged)
def activeMachineNetworkKey(self) -> str:
if self._global_container_stack:
return self._global_container_stack.getMetaDataEntry("um_network_key")
return ""
@pyqtProperty(QObject, notify = globalContainerChanged)
def activeMachine(self) -> Optional["GlobalStack"]:
return self._global_container_stack