Stop the text field from updating if the text has not changed. This was causing the custom mode text boxes to be updated instantly.

0.0 -delete-> 0. -instant update -> 0.0

 This is because the recommended mode text fields would update to "0." see that as a change from "0.0" and update the property. This triggered an update in the Custom mode textfield.

CURA-9793
This commit is contained in:
Joey de l'Arago 2022-12-08 09:34:16 +01:00
parent 91170e0aef
commit 9a03094bfd

View file

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