mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Fix some codestyle, make connectionType a property as it's needed in QML
This commit is contained in:
parent
d3419f2e07
commit
5e9fe3fe50
3 changed files with 18 additions and 21 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue