Mobile/filtering: only filter when editing is finished

This is a usability / performance tradeoff. I like it better when it filters as
I type, but on mobile this may make things feel sluggish.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2018-10-18 06:47:45 -04:00
parent f965492241
commit c797038bd8

View file

@ -410,7 +410,7 @@ Kirigami.ScrollablePage {
verticalAlignment: TextInput.AlignVCenter
text: ""
placeholderText: "Full text search"
onTextChanged: {
onAccepted: {
rootItem.filterPattern = text
diveModel.setFilter(text)
numShown.text = diveModel.shown()