From 99bf6883d78b6ad2c21d4b07a25c88adedb08ba4 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Tue, 28 Feb 2023 11:50:54 +0100 Subject: [PATCH] Set defaultExtruderIndex to activeExtruderIndex This doesn't fix the problem in it's entirety, but it does make the behavior to be the same as it was in the previous releases CURA-10342 --- resources/qml/Widgets/SingleSettingComboBox.qml | 2 +- resources/qml/Widgets/SingleSettingSlider.qml | 2 +- resources/qml/Widgets/SingleSettingTextField.qml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/qml/Widgets/SingleSettingComboBox.qml b/resources/qml/Widgets/SingleSettingComboBox.qml index 338e14b144..1b7101e9e7 100644 --- a/resources/qml/Widgets/SingleSettingComboBox.qml +++ b/resources/qml/Widgets/SingleSettingComboBox.qml @@ -20,7 +20,7 @@ Cura.ComboBox { // The displayed value will be read from the extruder with index "defaultExtruderIndex" instead of the machine. property bool updateAllExtruders: false // This is only used if updateAllExtruders == true - property int defaultExtruderIndex: 0 + property int defaultExtruderIndex: Cura.ExtruderManager.activeExtruderIndex model: ListModel { diff --git a/resources/qml/Widgets/SingleSettingSlider.qml b/resources/qml/Widgets/SingleSettingSlider.qml index 27e2be562c..aac204970e 100644 --- a/resources/qml/Widgets/SingleSettingSlider.qml +++ b/resources/qml/Widgets/SingleSettingSlider.qml @@ -21,7 +21,7 @@ UM.Slider // The displayed value will be read from the extruder with index "defaultExtruderIndex" instead of the machine. property bool updateAllExtruders: false // This is only used if updateAllExtruders == true - property int defaultExtruderIndex: 0 + property int defaultExtruderIndex: Cura.ExtruderManager.activeExtruderIndex property int previousValue: -1 // set range from 0 to 100 diff --git a/resources/qml/Widgets/SingleSettingTextField.qml b/resources/qml/Widgets/SingleSettingTextField.qml index 12d24d285d..22c080ebf4 100644 --- a/resources/qml/Widgets/SingleSettingTextField.qml +++ b/resources/qml/Widgets/SingleSettingTextField.qml @@ -20,7 +20,7 @@ UM.TextField // The displayed value will be read from the extruder with index "defaultExtruderIndex" instead of the machine. property bool updateAllExtruders: false // This is only used if updateAllExtruders == true - property int defaultExtruderIndex: 0 + property int defaultExtruderIndex: Cura.ExtruderManager.activeExtruderIndex // Resolving the value in the textField. Binding