mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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
1 changed files with 4 additions and 1 deletions
|
@ -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…
Reference in a new issue