diff --git a/resources/qml/Widgets/SingleSettingComboBox.qml b/resources/qml/Widgets/SingleSettingComboBox.qml index f0c43c31f7..151a9b1cd9 100644 --- a/resources/qml/Widgets/SingleSettingComboBox.qml +++ b/resources/qml/Widgets/SingleSettingComboBox.qml @@ -58,7 +58,9 @@ Cura.ComboBox { function onIsValueUsedChanged() { comboboxModel.updateModel() } } - onCurrentIndexChanged: + onCurrentIndexChanged: updateSetting() + + function updateSetting(value) { if (comboboxModel.get(currentIndex) && comboboxModel.get(currentIndex).code) { diff --git a/resources/qml/Widgets/SingleSettingSlider.qml b/resources/qml/Widgets/SingleSettingSlider.qml index 8baccfefe7..855af45417 100644 --- a/resources/qml/Widgets/SingleSettingSlider.qml +++ b/resources/qml/Widgets/SingleSettingSlider.qml @@ -63,10 +63,7 @@ RowLayout id: updateTimer interval: 100 repeat: false - onTriggered: - { - parseValueUpdateSetting() - } + onTriggered: parseValueUpdateSetting() } function parseValueUpdateSetting()