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 <jani@apache.org>
This commit is contained in:
jan Iversen 2019-12-21 17:33:51 +01:00 committed by Dirk Hohndel
parent e92dbe7974
commit 9117aa2a52
3 changed files with 7 additions and 6 deletions

View file

@ -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 {