diff options
author | jan Iversen <jan@casacondor.com> | 2019-12-21 17:33:51 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-25 03:15:52 +0900 |
commit | 9117aa2a52bec1997cb69984e6a9f333432e5167 (patch) | |
tree | 7eb32ef9b1029d5496db4deaa03f00f73364bcbe /mobile-widgets/qml/CloudCredentials.qml | |
parent | e92dbe7974a1b28b0c26438b7818f3249f82ac4c (diff) | |
download | subsurface-9117aa2a52bec1997cb69984e6a9f333432e5167.tar.gz |
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>
Diffstat (limited to 'mobile-widgets/qml/CloudCredentials.qml')
-rw-r--r-- | mobile-widgets/qml/CloudCredentials.qml | 4 |
1 files changed, 1 insertions, 3 deletions
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 { |