Merge pull request #5271 from Ultimaker/CL-1222_cloud_flow_pop_up

CL-1222 Cloud flow pop up
This commit is contained in:
Simon Edwards 2019-02-08 13:26:03 +01:00 committed by GitHub
commit 1163d8f442
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 220 additions and 15 deletions

View file

@ -517,6 +517,18 @@ class MachineManager(QObject):
return self._global_container_stack.getId()
return ""
@pyqtProperty(str, notify = globalContainerChanged)
def activeMachineFirmwareVersion(self) -> str:
if not self._printer_output_devices[0]:
return ""
return self._printer_output_devices[0].firmwareVersion
@pyqtProperty(str, notify = globalContainerChanged)
def activeMachineAddress(self) -> str:
if not self._printer_output_devices[0]:
return ""
return self._printer_output_devices[0].address
@pyqtProperty(bool, notify = printerConnectedStatusChanged)
def printerConnected(self) -> bool:
return bool(self._printer_output_devices)