From f965492241d5bc447925a77e0936bae3dcb1bed7 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 18 Oct 2018 06:46:50 -0400 Subject: Mobile/filtering: reset the filter text when toggled This seemed less UI clutter than adding a clear button. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DiveList.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index 9c2c9fbb8..dc805a394 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -415,6 +415,10 @@ Kirigami.ScrollablePage { diveModel.setFilter(text) numShown.text = diveModel.shown() } + onVisibleChanged: { + // reset the filter when it gets toggled + text = "" + } } Controls.Label { id: numShown -- cgit v1.2.3-70-g09d2