mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile-widgets/qml: use strongly typed CloudStatus
Replace CloudStatus.<value> with backend.<value> as part of making enum sharing between C/C++ and QML more robust. Replace PrefCloudStorage.verification_status with backend.verification_status to use the strongly typed function. Signed-off-by: jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c93b76eee6
commit
93c3a18db7
5 changed files with 17 additions and 17 deletions
|
|
@ -13,7 +13,7 @@ Item {
|
|||
|
||||
property string username: login.text;
|
||||
property string password: password.text;
|
||||
property bool showPin: (PrefCloudStorage.cloud_verification_status === CloudStatus.CS_NEED_TO_VERIFY)
|
||||
property bool showPin: (Backend.cloud_verification_status === Enums.CS_NEED_TO_VERIFY)
|
||||
|
||||
ColumnLayout {
|
||||
id: outerLayout
|
||||
|
|
@ -110,7 +110,7 @@ Item {
|
|||
id: cancelpin
|
||||
text: qsTr("Cancel")
|
||||
onClicked: {
|
||||
PrefCloudStorage.cloud_verification_status = CloudStatus.CS_UNKNOWN
|
||||
Backend.cloud_verification_status = Enums.CS_UNKNOWN
|
||||
manager.startPageText = qsTr("Check credentials...");
|
||||
}
|
||||
}
|
||||
|
|
@ -139,8 +139,8 @@ Item {
|
|||
onClicked: {
|
||||
manager.setGitLocalOnly(true)
|
||||
PrefCloudStorage.cloud_auto_sync = false
|
||||
manager.oldStatus = PrefCloudStorage.cloud_verification_status
|
||||
PrefCloudStorage.cloud_verification_status = CloudStatus.CS_NOCLOUD
|
||||
manager.oldStatus = Backend.cloud_verification_status
|
||||
Backend.cloud_verification_status = Enums.CS_NOCLOUD
|
||||
manager.saveCloudCredentials("", "", "")
|
||||
manager.openNoCloudRepo()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue