diff options
Diffstat (limited to 'qt-mobile/qml/main.qml')
-rw-r--r-- | qt-mobile/qml/main.qml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/qt-mobile/qml/main.qml b/qt-mobile/qml/main.qml index 1f1a65475..7cfc768bb 100644 --- a/qt-mobile/qml/main.qml +++ b/qt-mobile/qml/main.qml @@ -12,6 +12,7 @@ MobileComponents.ApplicationWindow { id: rootItem title: qsTr("Subsurface-mobile") property bool fullscreen: true + property int oldStatus: -1 FontMetrics { id: fontMetrics @@ -38,8 +39,15 @@ MobileComponents.ApplicationWindow { Action { text: "Cloud credentials" onTriggered: { - stackView.push(cloudCredWindow) detailsWindow.endEditMode() + oldStatus = manager.credentialStatus + if (diveList.numDives > 0) { + manager.startPageText = "Enter different credentials or return to dive list" + } else { + manager.startPageText = "Enter valdi cloud storage credentials" + } + + manager.credentialStatus = QMLManager.UNKNOWN } }, MobileComponents.ActionGroup { |