Browse Source

Revert "Fix: Cura update setting after delay"

This reverts commit f823a98708dd3eed2485ff412d3fe2dd03a31f35.
Aleksei S 7 years ago
parent
commit
38ae75637a
2 changed files with 9 additions and 12 deletions
  1. 0 0
      plugins/AutoSave/plugin.json
  2. 9 12
      resources/qml/Settings/SettingTextField.qml

+ 0 - 0
plugins/BigFlameGraph/plugin.json → plugins/AutoSave/plugin.json


+ 9 - 12
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)
                 }
             }