Merge pull request #5255 from Ultimaker/CL-1154_monitor_empty_states

CL-1154 Monitor empty states
This commit is contained in:
Simon Edwards 2019-01-31 16:44:25 +01:00 committed by GitHub
commit eeb23c4ba4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 257 additions and 10 deletions

View file

@ -532,6 +532,12 @@ class MachineManager(QObject):
return has_remote_connection
return False
@pyqtProperty("QVariantList", notify=globalContainerChanged)
def activeMachineConfiguredConnectionTypes(self):
if self._global_container_stack:
return self._global_container_stack.configuredConnectionTypes
return []
@pyqtProperty(bool, notify = printerConnectedStatusChanged)
def activeMachineIsGroup(self) -> bool:
return bool(self._printer_output_devices) and len(self._printer_output_devices[0].printers) > 1