Ensure that the connectiontype of a connected printer is set correctly

CURA-6011
This commit is contained in:
Jaime van Kessel 2019-01-04 15:24:01 +01:00
parent efac7c39c0
commit 4c1f68a447

View file

@ -114,6 +114,7 @@ class UM3OutputDevicePlugin(OutputDevicePlugin):
if key == um_network_key:
if not self._discovered_devices[key].isConnected():
Logger.log("d", "Attempting to connect with [%s]" % key)
active_machine.setMetaDataEntry("connection_type", self._discovered_devices[key].getConnectionType().value)
self._discovered_devices[key].connect()
self._discovered_devices[key].connectionStateChanged.connect(self._onDeviceConnectionStateChanged)
else: