Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorc.lamboo <casperlamboo@gmail.com>2022-09-13 11:41:46 +0300
committerc.lamboo <casperlamboo@gmail.com>2022-09-13 11:41:46 +0300
commitd97dddcfe2db72e9397a3ab2b3e078e4e7cba001 (patch)
tree5207f64dc8d47f176186b3f341478ee7ecae4268 /cura/Settings
parentad14e60d26c7dbcfe701ba3485921d1ce3a1cc8b (diff)
Revert "More agressivly check online printers"
This reverts commit 92b371cd508ebf5102aa5ae979865d2bac591b7e.
Diffstat (limited to 'cura/Settings')
-rwxr-xr-xcura/Settings/MachineManager.py6
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)