mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 20:29:05 +08:00
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:
parent
91170e0aef
commit
9a03094bfd
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user