diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-10-18 06:47:45 -0400 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-23 22:45:30 +0100 |
commit | c797038bd8cc4a6f058069dbd34471242529eaab (patch) | |
tree | db23d5837e2c2babc41e8f75a10d8a05177d6813 /mobile-widgets | |
parent | f965492241d5bc447925a77e0936bae3dcb1bed7 (diff) | |
download | subsurface-c797038bd8cc4a6f058069dbd34471242529eaab.tar.gz |
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>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index dc805a394..d41057567 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -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() |