mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Fix optional type for output device
This commit is contained in:
parent
112950f003
commit
80d2a78463
1 changed files with 1 additions and 1 deletions
|
|
@ -534,7 +534,7 @@ class MachineManager(QObject):
|
||||||
def activeMachineHasCloudConnection(self) -> bool:
|
def activeMachineHasCloudConnection(self) -> bool:
|
||||||
if not self.activeMachineHasRemoteConnection:
|
if not self.activeMachineHasRemoteConnection:
|
||||||
return False
|
return False
|
||||||
output_device = next(iter(self.printerOutputDevices), None) # type: PrinterOutputDevice
|
output_device = next(iter(self.printerOutputDevices), None) # type: Optional[PrinterOutputDevice]
|
||||||
if not output_device:
|
if not output_device:
|
||||||
return False
|
return False
|
||||||
return output_device.connectionType == ConnectionType.CloudConnection
|
return output_device.connectionType == ConnectionType.CloudConnection
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue