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
@ -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…
x
Reference in New Issue
Block a user