summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DiveList.qml
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-12-28 16:13:00 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-28 08:34:56 -0800
commitbdbaf72d272ebcb5f51d1bd196df4fcfbce5e2b4 (patch)
tree04839670636cb64ac9cc6e8adeeb5ce13fd03fab /mobile-widgets/qml/DiveList.qml
parent3cca6b9e9b82e0cc5ac0be28b690645069862fdf (diff)
downloadsubsurface-bdbaf72d272ebcb5f51d1bd196df4fcfbce5e2b4.tar.gz
mobile-widgets/qml: remove use of prefs. in DiveList.qml
prefs. is only important during the signin process, so use the standard PrefCloudStorage variable Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DiveList.qml')
-rw-r--r--mobile-widgets/qml/DiveList.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml
index 6f318ac3b..d353d6995 100644
--- a/mobile-widgets/qml/DiveList.qml
+++ b/mobile-widgets/qml/DiveList.qml
@@ -30,12 +30,12 @@ Kirigami.ScrollablePage {
supportsRefreshing: true
onRefreshingChanged: {
if (refreshing) {
- if (prefs.credentialStatus === CloudStatus.CS_VERIFIED) {
+ if (PrefCloudStorage.cloud_verification_status === CloudStatus.CS_VERIFIED) {
detailsWindow.endEditMode()
manager.saveChangesCloud(true)
refreshing = false
} else {
- manager.appendTextToLog("sync with cloud storage requested, but credentialStatus is " + prefs.credentialStatus)
+ manager.appendTextToLog("sync with cloud storage requested, but credential status is " + PrefCloudStorage.cloud_verification_status)
manager.appendTextToLog("no syncing, turn off spinner")
refreshing = false
}