Fix review comments

CURA-6011
This commit is contained in:
Jaime van Kessel 2018-12-18 09:40:08 +01:00
parent aad7540366
commit 84a7f2e5a2
5 changed files with 10 additions and 10 deletions

View file

@ -521,11 +521,11 @@ class MachineManager(QObject):
def printerConnected(self):
return bool(self._printer_output_devices)
@pyqtProperty(bool, notify=printerConnectedStatusChanged)
@pyqtProperty(bool, notify = printerConnectedStatusChanged)
def activeMachineHasRemoteConnection(self) -> bool:
if self._global_container_stack:
connection_type = self._global_container_stack.getMetaDataEntry("connection_type")
return connection_type in [str(ConnectionType.NetworkConnection), str(ConnectionType.CloudConnection)]
return connection_type in [ConnectionType.NetworkConnection.value, ConnectionType.CloudConnection.value]
return False
def activeMachineNetworkKey(self) -> str: