From 1262d1f641d02e26b424869b129f789bc5a62ac9 Mon Sep 17 00:00:00 2001 From: Kostas Karmas Date: Wed, 22 Apr 2020 18:31:04 +0200 Subject: [PATCH] Activate the first available Cloud printer if the activeMachine is empty CURA-7019 --- .../UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py index 60ec98acc0..d4355b2637 100644 --- a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py +++ b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py @@ -180,7 +180,10 @@ class CloudOutputDeviceManager: message.setProgress((idx / len(new_devices)) * 100) CuraApplication.getInstance().processEvents() self._remote_clusters[device.getId()] = device - self._createMachineFromDiscoveredDevice(device.getId(), activate = False) + + # If there is no active machine, activate the first available cloud printer + activate = not CuraApplication.getInstance().getMachineManager().activeMachine + self._createMachineFromDiscoveredDevice(device.getId(), activate = activate) message.setProgress(None)