mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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>
This commit is contained in:
parent
3cca6b9e9b
commit
bdbaf72d27
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue