mobile-widgets/qml: don't call cancelCredentialsPinSetup()

Copy functionality from cancelCredentialsPinSetup() into Cancel in
CloudCredentials.qml, this is part of the general qmlprefs cleanup.

Remove rootItem.returnTopPage() since the user stays on this page
(sees credentials again).

Signed-off-by: Jan Iversen <jan@casacondor.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
jan Iversen 2019-12-27 09:28:03 +01:00 committed by Dirk Hohndel
parent dc018cd77d
commit de4e1c1efa

View file

@ -109,8 +109,10 @@ Item {
id: cancelpin
text: qsTr("Cancel")
onClicked: {
prefs.cancelCredentialsPinSetup()
rootItem.returnTopPage()
PrefCloudStorage.cloud_verification_status = CloudStatus.CS_UNKNOWN
prefs.cloudCredentials = CloudStatus.CS_UNKNOWN
manager.startPageText = qsTr("Check credentials...");
prefs.showPin = false;
}
}
}