mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-19 01:55:54 +08:00
Remove redundant printerSearchTimer
CURA-11003
This commit is contained in:
parent
0049271ae8
commit
66754d837b
@ -61,15 +61,6 @@ Item
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Timer
|
|
||||||
{
|
|
||||||
id: printerSearchTimer
|
|
||||||
onTriggered: filter.editingFinished()
|
|
||||||
interval: 50
|
|
||||||
running: false
|
|
||||||
repeat: false
|
|
||||||
}
|
|
||||||
|
|
||||||
Component.onCompleted:
|
Component.onCompleted:
|
||||||
{
|
{
|
||||||
const initialSection = "Ultimaker B.V.";
|
const initialSection = "Ultimaker B.V.";
|
||||||
@ -117,7 +108,7 @@ Item
|
|||||||
color: UM.Theme.getColor("text")
|
color: UM.Theme.getColor("text")
|
||||||
}
|
}
|
||||||
|
|
||||||
onTextChanged: printerSearchTimer.restart()
|
onTextChanged: filter.editingFinished()
|
||||||
onEditingFinished:
|
onEditingFinished:
|
||||||
{
|
{
|
||||||
machineDefinitionsModel.filter = {"name" : "*" + text.toLowerCase() + "*", "visible": true}
|
machineDefinitionsModel.filter = {"name" : "*" + text.toLowerCase() + "*", "visible": true}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user