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