mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06: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
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue