mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 16:25:55 +08:00
Fix: Cura update setting after delay
CURA-4785
This commit is contained in:
parent
33da81d0d2
commit
f823a98708
@ -102,6 +102,17 @@ SettingItem
|
|||||||
|
|
||||||
TextInput
|
TextInput
|
||||||
{
|
{
|
||||||
|
Timer
|
||||||
|
{
|
||||||
|
id: inputTimer
|
||||||
|
interval: 1000
|
||||||
|
running: false
|
||||||
|
repeat: false
|
||||||
|
onTriggered: {
|
||||||
|
propertyProvider.setPropertyValue("value", input.text)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
id: input
|
id: input
|
||||||
|
|
||||||
anchors
|
anchors
|
||||||
@ -131,15 +142,7 @@ SettingItem
|
|||||||
}
|
}
|
||||||
if (textHasChanged)
|
if (textHasChanged)
|
||||||
{
|
{
|
||||||
propertyProvider.setPropertyValue("value", text)
|
inputTimer.restart()
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
onEditingFinished:
|
|
||||||
{
|
|
||||||
if (textHasChanged)
|
|
||||||
{
|
|
||||||
propertyProvider.setPropertyValue("value", text)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user