mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 21:25:56 +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,
|
ConnectionType.NetworkConnection in machine.configuredConnectionTypes,
|
||||||
machines)
|
machines)
|
||||||
if online_only:
|
if online_only:
|
||||||
# LAN printers can have is_online = False but should still be included,
|
machines = filter(lambda machine: parseBool(machine.getMetaDataEntry("is_online", False)), machines)
|
||||||
# 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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user