Fix review comments

CURA-6011
This commit is contained in:
Jaime van Kessel 2018-12-18 09:40:08 +01:00
parent aad7540366
commit 84a7f2e5a2
5 changed files with 10 additions and 10 deletions

View file

@ -283,7 +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()))
global_container_stack.setMetaDataEntry("connection_type", device.getConnectionType().value)
device.connect()
device.connectionStateChanged.connect(self._onDeviceConnectionStateChanged)