From 6fd7b49937cc4a19ad2a0b214a6a97e4841dc70a Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Thu, 25 Oct 2018 15:11:02 +0200 Subject: [PATCH] Fix setting extruder material diameter in Machine Settings dialog CURA-5857 It should update the value of the selected Extruder TAB, not the active extruder on the printer. --- plugins/MachineSettingsAction/MachineSettingsAction.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/MachineSettingsAction/MachineSettingsAction.qml b/plugins/MachineSettingsAction/MachineSettingsAction.qml index 5109aa05cb..ffd3a8cb47 100644 --- a/plugins/MachineSettingsAction/MachineSettingsAction.qml +++ b/plugins/MachineSettingsAction/MachineSettingsAction.qml @@ -410,7 +410,11 @@ Cura.MachineAction } function setValueFunction(value) { - Cura.MachineManager.activeStack.compatibleMaterialDiameter = value + if (settingsTabs.currentIndex > 0) + { + var extruderIndex = (settingsTabs.currentIndex - 1).toString(); + Cura.MachineManager.extruders[extruderIndex].compatibleMaterialDiameter = value; + } } property bool isExtruderSetting: true }