Browse Source

Fix same property value check.

CURA-9793
Joey de l'Arago 2 years ago
parent
commit
82fd34f168
1 changed files with 1 additions and 1 deletions
  1. 1 1
      resources/qml/Widgets/SingleSettingTextField.qml

+ 1 - 1
resources/qml/Widgets/SingleSettingTextField.qml

@@ -87,7 +87,7 @@ UM.TextField
 
     function parseValueUpdateSetting()
     {
-        if (propertyProvider.properties.value == text || parseInt(propertyProvide.properties.value) == parseInt(text))
+        if (propertyProvider.properties.value == text || (parseFloat(propertyProvider.properties.value) == parseFloat(text) && !isNan(parseFloat(text))))
         {
             // Don't set the property value from the control. It already has the same value
             return