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-12 18:34:44 +0300
committerc.lamboo <casperlamboo@gmail.com>2022-09-12 18:34:44 +0300
commit92b371cd508ebf5102aa5ae979865d2bac591b7e (patch)
tree340f007a5c27255b5a25931788e18248f572180f
parent99136fd20991d567bfe1289c2ad7e7779b8c6a9c (diff)
More agressivly check online printersCURA-9278_choose_printer_dialog
CURA-9278
-rwxr-xr-xcura/Settings/MachineManager.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/cura/Settings/MachineManager.py b/cura/Settings/MachineManager.py
index 2051ce1b99..699942ebaf 100755
--- a/cura/Settings/MachineManager.py
+++ b/cura/Settings/MachineManager.py
@@ -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)