mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
cadb072a0c
commit
f965492241
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue