mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
e92dbe7974
commit
9117aa2a52
3 changed files with 7 additions and 6 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue