diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-04-03 10:48:35 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-04-03 10:49:07 -0700 |
commit | 8c94fa2676dad64ae2a45329cfcdf8073760c6f5 (patch) | |
tree | 07b447a570dcfa644038fcbeaa5eac1273a63c97 | |
parent | e4460be8a6853ec7e77e437ae9530b8f7176c239 (diff) | |
download | subsurface-8c94fa2676dad64ae2a45329cfcdf8073760c6f5.tar.gz |
QML UI: ensure actions are set up for Credentials page
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 9 |
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 { |