Fix some codestyle, make connectionType a property as it's needed in QML

This commit is contained in:
ChrisTerBeke 2018-12-19 11:21:50 +01:00
parent d3419f2e07
commit 5e9fe3fe50
3 changed files with 18 additions and 21 deletions

View file

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