aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mobile-widgets/qml/main.qml12
1 files changed, 6 insertions, 6 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml
index cb8e2e5df..a32fbb543 100644
--- a/mobile-widgets/qml/main.qml
+++ b/mobile-widgets/qml/main.qml
@@ -164,8 +164,8 @@ Kirigami.ApplicationWindow {
id: globalDrawer
height: rootItem.height
rightPadding: 0
- enabled: (prefs.credentialStatus === CloudStatus.CS_NOCLOUD ||
- prefs.credentialStatus === CloudStatus.CS_VERIFIED)
+ enabled: (PrefCloudStorage.cloud_verification_status === CloudStatus.CS_NOCLOUD ||
+ PrefCloudStorage.cloud_verification_status === CloudStatus.CS_VERIFIED)
topContent: Image {
source: "qrc:/qml/icons/dive.jpg"
Layout.fillWidth: true
@@ -244,7 +244,7 @@ Kirigami.ApplicationWindow {
}
text: qsTr("Dive list")
onTriggered: {
- manager.appendTextToLog("requested dive list with credential status " + prefs.credentialStatus)
+ manager.appendTextToLog("requested dive list with credential status " + PrefCloudStorage.cloud_verification_status)
returnTopPage()
globalDrawer.close()
}
@@ -332,7 +332,7 @@ Kirigami.ApplicationWindow {
name: PrefCloudStorage.cloud_auto_sync ? ":/icons/ic_cloud_off.svg" : ":/icons/ic_cloud_done.svg"
}
text: PrefCloudStorage.cloud_auto_sync ? qsTr("Disable auto cloud sync") : qsTr("Enable auto cloud sync")
- visible: prefs.credentialStatus !== CloudStatus.CS_NOCLOUD
+ visible: PrefCloudStorage.cloud_verification_status !== CloudStatus.CS_NOCLOUD
onTriggered: {
PrefCloudStorage.cloud_auto_sync = !PrefCloudStorage.cloud_auto_sync
manager.setGitLocalOnly(PrefCloudStorage.cloud_auto_sync)
@@ -829,8 +829,8 @@ if you have network connectivity and want to sync your data to cloud storage."),
StartPage {
id: startPage
anchors.fill: parent
- visible: prefs.credentialStatus !== CloudStatus.CS_NOCLOUD &&
- prefs.credentialStatus !== CloudStatus.CS_VERIFIED
+ visible: PrefCloudStorage.cloud_verification_status !== CloudStatus.CS_NOCLOUD &&
+ PrefCloudStorage.cloud_verification_status !== CloudStatus.CS_VERIFIED
Behavior on opacity { NumberAnimation { duration: Kirigami.Units.shortDuration } }
onVisibleChanged: {