Partial revert of #6432, actually fix refreshing configurations

This commit is contained in:
ChrisTerBeke 2019-09-27 19:25:23 +02:00
parent 2c12d713e3
commit 01e665a0d7
No known key found for this signature in database
GPG Key ID: A49F1AB9D7E0C263

View File

@ -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: