mobile/dive-list: only show dive list notifications when it is visible

Without this check we'll show the 'Please tap the plus botton...'
notification during app initialization as we are showing the initial set
of messages - which makes no sense.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-04-01 11:55:15 -07:00
parent 00617aa924
commit cf9303c862

View file

@ -445,7 +445,10 @@ Kirigami.ScrollablePage {
Component.onCompleted: {
manager.appendTextToLog("finished setting up the diveListView")
}
onVisibleChanged: setupActions()
onVisibleChanged: {
if (visible)
setupActions()
}
}
property QtObject downloadFromDCAction: Kirigami.Action {