From d34c28543b6539e2d799482933b99b3982f21686 Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Wed, 27 Apr 2016 11:49:25 +0200 Subject: [PATCH] Connect extruder comboboxes with their settings CURA-790 --- resources/qml/SidebarSimple.qml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/resources/qml/SidebarSimple.qml b/resources/qml/SidebarSimple.qml index 620b8e29ca..9387872276 100644 --- a/resources/qml/SidebarSimple.qml +++ b/resources/qml/SidebarSimple.qml @@ -308,6 +308,10 @@ Item anchors.top: parent.top anchors.left: supportExtruderLabel.right style: UM.Theme.styles.combobox + currentIndex: UM.ActiveProfile.valid ? UM.ActiveProfile.settingValues.getValue("extruder_nr") : 0 + onActivated: { + UM.MachineManager.setSettingValue("extruder_nr", index) + } } Label { @@ -327,6 +331,10 @@ Item anchors.topMargin: UM.Theme.getSize("default_margin").height anchors.left: supportExtruderLabel.right style: UM.Theme.styles.combobox + currentIndex: UM.ActiveProfile.valid ? UM.ActiveProfile.settingValues.getValue("support_extruder_nr") : 0 + onActivated: { + UM.MachineManager.setSettingValue("support_extruder_nr", index) + } } ListModel {