From 38ae75637a7445cd66eaedbec8562531698feb37 Mon Sep 17 00:00:00 2001 From: Aleksei S Date: Mon, 15 Jan 2018 16:15:36 +0100 Subject: [PATCH] Revert "Fix: Cura update setting after delay" This reverts commit f823a98708dd3eed2485ff412d3fe2dd03a31f35. --- .../{BigFlameGraph => AutoSave}/plugin.json | 0 resources/qml/Settings/SettingTextField.qml | 21 ++++++++----------- 2 files changed, 9 insertions(+), 12 deletions(-) rename plugins/{BigFlameGraph => AutoSave}/plugin.json (100%) diff --git a/plugins/BigFlameGraph/plugin.json b/plugins/AutoSave/plugin.json similarity index 100% rename from plugins/BigFlameGraph/plugin.json rename to plugins/AutoSave/plugin.json diff --git a/resources/qml/Settings/SettingTextField.qml b/resources/qml/Settings/SettingTextField.qml index cf5d1cd7f0..176a4e23e6 100644 --- a/resources/qml/Settings/SettingTextField.qml +++ b/resources/qml/Settings/SettingTextField.qml @@ -102,17 +102,6 @@ SettingItem TextInput { - Timer - { - id: inputTimer - interval: 1000 - running: false - repeat: false - onTriggered: { - propertyProvider.setPropertyValue("value", input.text) - } - } - id: input anchors @@ -142,7 +131,15 @@ SettingItem } if (textHasChanged) { - inputTimer.restart() + propertyProvider.setPropertyValue("value", text) + } + } + + onEditingFinished: + { + if (textHasChanged) + { + propertyProvider.setPropertyValue("value", text) } }