From cf9303c862009f30b0a415ef9151d7fc6e14527e Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 1 Apr 2020 11:55:15 -0700 Subject: 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 --- mobile-widgets/qml/DiveList.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mobile-widgets') 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 { -- cgit v1.2.3-70-g09d2