mobile/dive-list: try to force focus on filter text field

This was triggered by a change in enabled, but what is really changing is
the visible property. This should work better.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-03-31 10:19:24 -07:00
parent 1549d6f528
commit 7bddef02cd

View file

@ -416,7 +416,7 @@ Kirigami.ScrollablePage {
onAccepted: {
manager.setFilter(text, sitefilterMode.currentIndex)
}
onEnabledChanged: {
onVisibleChanged: {
// reset the filter when it gets toggled
text = ""
if (visible) {