mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 00:15:56 +08:00
Fix optional type for output device
This commit is contained in:
parent
112950f003
commit
80d2a78463
@ -534,7 +534,7 @@ class MachineManager(QObject):
|
||||
def activeMachineHasCloudConnection(self) -> bool:
|
||||
if not self.activeMachineHasRemoteConnection:
|
||||
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:
|
||||
return False
|
||||
return output_device.connectionType == ConnectionType.CloudConnection
|
||||
|
Loading…
x
Reference in New Issue
Block a user