diff options
Diffstat (limited to 'mobile-widgets/qml/main.qml')
-rw-r--r-- | mobile-widgets/qml/main.qml | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index b20ce4262..b8ef213fb 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -708,8 +708,6 @@ if you have network connectivity and want to sync your data to cloud storage."), } } - pageStack.initialPage: diveList - property int hackToOpenMap: 0 /* Otherpage */ /* I really want an enum, but those are painful in QML, so let's use numbers * 0 (Otherpage) - the last page selected was a non-map page @@ -774,6 +772,31 @@ if you have network connectivity and want to sync your data to cloud storage."), id: manager } + StartPage { + id: startPage + anchors.fill: parent + visible: prefs.credentialStatus !== CloudStatus.CS_NOCLOUD && + prefs.credentialStatus !== CloudStatus.CS_VERIFIED + Behavior on opacity { NumberAnimation { duration: Kirigami.Units.shortDuration } } + + onVisibleChanged: { + console.log("---> Startpage changed visibility to " + visible) + if (visible) { + pageStack.clear() + diveList.visible = false + } else { + pageStack.push(diveList) + } + } + + Component.onCompleted: { + if (!visible) { + console.log("---> Startpage change to diveList") + pageStack.initPage = diveList + } + } + } + DiveList { id: diveList visible: false |