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:
jan Iversen 2020-01-05 17:08:48 +01:00 committed by Dirk Hohndel
parent c93b76eee6
commit 93c3a18db7
5 changed files with 17 additions and 17 deletions

View file

@ -30,7 +30,7 @@ Kirigami.ScrollablePage {
supportsRefreshing: true
onRefreshingChanged: {
if (refreshing) {
if (PrefCloudStorage.cloud_verification_status === CloudStatus.CS_VERIFIED) {
if (Backend.cloud_verification_status === Enums.CS_VERIFIED) {
detailsWindow.endEditMode()
manager.saveChangesCloud(true)
refreshing = false