summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-12-28 16:30:53 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-28 08:36:55 -0800
commit07ad455ea24086766f2b6e61176377a424e6b044 (patch)
tree49dab6ab9a8c83970ea831000b13f49aa62ae330
parent7e0e489d453600f5de3e359a23916eb6fb10116c (diff)
downloadsubsurface-07ad455ea24086766f2b6e61176377a424e6b044.tar.gz
mobile-widgets/qml: prefs.credentialStatus -> PrefCloudStorage
Remove use of prefs. (apart from instanciating the object) in main.qml Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-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: {