mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 14:44:13 -06:00
Fix: Cura update setting after delay
CURA-4785
This commit is contained in:
parent
33da81d0d2
commit
f823a98708
2 changed files with 12 additions and 9 deletions
|
@ -102,6 +102,17 @@ SettingItem
|
|||
|
||||
TextInput
|
||||
{
|
||||
Timer
|
||||
{
|
||||
id: inputTimer
|
||||
interval: 1000
|
||||
running: false
|
||||
repeat: false
|
||||
onTriggered: {
|
||||
propertyProvider.setPropertyValue("value", input.text)
|
||||
}
|
||||
}
|
||||
|
||||
id: input
|
||||
|
||||
anchors
|
||||
|
@ -131,15 +142,7 @@ SettingItem
|
|||
}
|
||||
if (textHasChanged)
|
||||
{
|
||||
propertyProvider.setPropertyValue("value", text)
|
||||
}
|
||||
}
|
||||
|
||||
onEditingFinished:
|
||||
{
|
||||
if (textHasChanged)
|
||||
{
|
||||
propertyProvider.setPropertyValue("value", text)
|
||||
inputTimer.restart()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue