More agressivly check online printers

CURA-9278
This commit is contained in:
c.lamboo 2022-09-12 17:34:44 +02:00
parent 99136fd209
commit 92b371cd50

View file

@ -205,11 +205,7 @@ class MachineManager(QObject):
ConnectionType.NetworkConnection in machine.configuredConnectionTypes,
machines)
if online_only:
# LAN printers can have is_online = False but should still be included,
# their online status is only checked when they are the active printer.
machines = filter(lambda machine: parseBool(machine.getMetaDataEntry("is_online", False) or
ConnectionType.NetworkConnection in machine.configuredConnectionTypes),
machines)
machines = filter(lambda machine: parseBool(machine.getMetaDataEntry("is_online", False)), machines)
return list(machines)