mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 09:47:50 -06:00
Remove redundant printerSearchTimer
CURA-11003
This commit is contained in:
parent
0049271ae8
commit
66754d837b
1 changed files with 1 additions and 10 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue