mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
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>
This commit is contained in:
parent
7e0e489d45
commit
07ad455ea2
1 changed files with 6 additions and 6 deletions
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue