mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-10 23:35:07 -06:00
More agressivly check online printers
CURA-9278
This commit is contained in:
parent
99136fd209
commit
92b371cd50
1 changed files with 1 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue