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:
parent
00617aa924
commit
cf9303c862
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user