diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-04-01 11:55:15 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-04-04 12:00:25 -0700 |
commit | cf9303c862009f30b0a415ef9151d7fc6e14527e (patch) | |
tree | 83802ddc9cb7ebabe1f2b25a952ec70b1e434c55 /mobile-widgets | |
parent | 00617aa9248dc300fab3bacc4b40d52def7db86e (diff) | |
download | subsurface-cf9303c862009f30b0a415ef9151d7fc6e14527e.tar.gz |
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>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index b048d4f2d..25cbccdd4 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -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 { |