mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-18 20:28:01 -06:00
Fix review comments
CURA-6011
This commit is contained in:
parent
aad7540366
commit
84a7f2e5a2
5 changed files with 10 additions and 10 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue