summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mobile-widgets/qml/DiveList.qml9
1 files changed, 7 insertions, 2 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml
index 1a49a2bfe..484c03383 100644
--- a/mobile-widgets/qml/DiveList.qml
+++ b/mobile-widgets/qml/DiveList.qml
@@ -215,8 +215,7 @@ Kirigami.ScrollablePage {
opacity: credentialStatus === QMLManager.NOCLOUD || (credentialStatus === QMLManager.VALID || credentialStatus === QMLManager.VALID_EMAIL) ? 0 : 1
visible: opacity > 0
Behavior on opacity { NumberAnimation { duration: Kirigami.Units.shortDuration } }
- onVisibleChanged: {
- print("startPage onVisibleChanged credentialStatus " + credentialStatus + " diveListView.count " + diveListView.count)
+ function setupActions() {
if (visible) {
page.actions.main = page.saveAction
page.actions.right = page.offlineAction
@@ -233,6 +232,12 @@ Kirigami.ScrollablePage {
title = qsTr("Dive list")
}
}
+ onVisibleChanged: {
+ setupActions();
+ }
+ Component.onCompleted: {
+ setupActions();
+ }
}
Text {