From 01ebee4aea6bd484d3e471a6c2f781aa6cb14cd0 Mon Sep 17 00:00:00 2001 From: Joey de l'Arago Date: Thu, 1 Dec 2022 15:27:14 +0100 Subject: [PATCH] Cleanup CURA-9793 --- resources/qml/Widgets/SingleSettingComboBox.qml | 4 +++- resources/qml/Widgets/SingleSettingSlider.qml | 5 +---- 2 files changed, 4 insertions(+), 5 deletions(-) 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()