mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 14:44:13 -06:00
Revert "More agressivly check online printers"
This reverts commit 92b371cd50
.
This commit is contained in:
parent
ad14e60d26
commit
d97dddcfe2
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue