mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06: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:
|
||||
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…
Add table
Add a link
Reference in a new issue