Mobile/filtering: reset the filter text when toggled

This seemed less UI clutter than adding a clear button.

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

View file

@ -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