mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
QML UI: ensure actions are set up for Credentials page
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e4460be8a6
commit
8c94fa2676
1 changed files with 7 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue