Revert "More agressivly check online printers"

This reverts commit 92b371cd50.
This commit is contained in:
c.lamboo 2022-09-13 10:41:46 +02:00
parent ad14e60d26
commit d97dddcfe2

View file

@ -205,7 +205,11 @@ class MachineManager(QObject):
ConnectionType.NetworkConnection in machine.configuredConnectionTypes, ConnectionType.NetworkConnection in machine.configuredConnectionTypes,
machines) machines)
if online_only: if online_only:
machines = filter(lambda machine: parseBool(machine.getMetaDataEntry("is_online", False)), machines) # 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)
return list(machines) return list(machines)