From 01e665a0d72cbf0552d34d6199f5826cf205a6fa Mon Sep 17 00:00:00 2001 From: ChrisTerBeke Date: Fri, 27 Sep 2019 19:25:23 +0200 Subject: [PATCH] Partial revert of #6432, actually fix refreshing configurations --- .../src/Network/LocalClusterOutputDeviceManager.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/UM3NetworkPrinting/src/Network/LocalClusterOutputDeviceManager.py b/plugins/UM3NetworkPrinting/src/Network/LocalClusterOutputDeviceManager.py index 922d926f02..d972832751 100644 --- a/plugins/UM3NetworkPrinting/src/Network/LocalClusterOutputDeviceManager.py +++ b/plugins/UM3NetworkPrinting/src/Network/LocalClusterOutputDeviceManager.py @@ -92,7 +92,11 @@ class LocalClusterOutputDeviceManager: ## Connect the active machine to a given device. def associateActiveMachineWithPrinterDevice(self, device: LocalClusterOutputDevice) -> None: - self._createMachineFromDiscoveredDevice(device.getId()) + active_machine = CuraApplication.getInstance().getGlobalContainerStack() + if not active_machine: + return + self._connectToOutputDevice(device, active_machine) + self._connectToActiveMachine() ## Callback for when the active machine was changed by the user or a new remote cluster was found. def _connectToActiveMachine(self) -> None: