diff options
author | c.lamboo <casperlamboo@gmail.com> | 2022-09-13 11:41:46 +0300 |
---|---|---|
committer | c.lamboo <casperlamboo@gmail.com> | 2022-09-13 11:41:46 +0300 |
commit | d97dddcfe2db72e9397a3ab2b3e078e4e7cba001 (patch) | |
tree | 5207f64dc8d47f176186b3f341478ee7ecae4268 /cura/Settings | |
parent | ad14e60d26c7dbcfe701ba3485921d1ce3a1cc8b (diff) |
Revert "More agressivly check online printers"
This reverts commit 92b371cd508ebf5102aa5ae979865d2bac591b7e.
Diffstat (limited to 'cura/Settings')
-rwxr-xr-x | cura/Settings/MachineManager.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cura/Settings/MachineManager.py b/cura/Settings/MachineManager.py index 699942ebaf..2051ce1b99 100755 --- a/cura/Settings/MachineManager.py +++ b/cura/Settings/MachineManager.py @@ -205,7 +205,11 @@ class MachineManager(QObject): ConnectionType.NetworkConnection in machine.configuredConnectionTypes, machines) 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) |