From 9117aa2a52bec1997cb69984e6a9f333432e5167 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Sat, 21 Dec 2019 17:33:51 +0100 Subject: mobile-widgets: make saveCredentials() an atom Call saveCredentials with username/password to avoid first setting the two and then calling. Change saveCredentials() to use newUser, newPassword. Signed-off-by: Jan Iversen --- mobile-widgets/qml/CloudCredentials.qml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'mobile-widgets/qml') diff --git a/mobile-widgets/qml/CloudCredentials.qml b/mobile-widgets/qml/CloudCredentials.qml index 198e2605c..50db7c952 100644 --- a/mobile-widgets/qml/CloudCredentials.qml +++ b/mobile-widgets/qml/CloudCredentials.qml @@ -15,10 +15,8 @@ Item { property string password: password.text; function saveCredentials() { - prefs.cloudUserName = login.text - prefs.cloudPassword = password.text prefs.cloudPin = pin.text - manager.saveCloudCredentials() + manager.saveCloudCredentials(login.text, password.text) } ColumnLayout { -- cgit v1.2.3-70-g09d2