mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 00:39:03 +08:00
More agressivly check online printers
CURA-9278
This commit is contained in:
parent
99136fd209
commit
92b371cd50
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user