Move the machines from machinelist into their own model

CURA-6011
This commit is contained in:
Jaime van Kessel 2018-12-14 17:10:58 +01:00
parent a18203b286
commit 226d052468
5 changed files with 97 additions and 53 deletions

View file

@ -283,6 +283,7 @@ class UM3OutputDevicePlugin(OutputDevicePlugin):
global_container_stack = Application.getInstance().getGlobalContainerStack()
if global_container_stack and device.getId() == global_container_stack.getMetaDataEntry("um_network_key"):
global_container_stack.setMetaDataEntry("connection_type", str(device.getConnectionType()))
device.connect()
device.connectionStateChanged.connect(self._onDeviceConnectionStateChanged)