aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile/Preferences.qml
diff options
context:
space:
mode:
authorGravatar Grace Karanja <gracie.karanja89@gmail.com>2015-07-21 11:57:10 +0300
committerGravatar Grace Karanja <gracie.karanja89@gmail.com>2015-07-22 09:53:19 +0300
commitea11eff27900b0929068c2fd18728db6412484cf (patch)
treef6a115c7fa9f20548a022b94e6aec79e19f27aed /qt-mobile/Preferences.qml
parentb28517b9b002bbdaac867d0b720c17ae865cf17d (diff)
downloadsubsurface-ea11eff27900b0929068c2fd18728db6412484cf.tar.gz
QML UI: Implement saving of cloud password
If the user ticks the 'Save Password' box, then we save the password for future use. Signed-off-by: Grace Karanja <gracie.karanja89@gmail.com>
Diffstat (limited to 'qt-mobile/Preferences.qml')
-rw-r--r--qt-mobile/Preferences.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-mobile/Preferences.qml b/qt-mobile/Preferences.qml
index f03ab8a02..8f4a15328 100644
--- a/qt-mobile/Preferences.qml
+++ b/qt-mobile/Preferences.qml
@@ -50,6 +50,7 @@ Item {
}
CheckBox {
+ checked: manager.saveCloudPassword
id: savePassword
}
@@ -63,6 +64,7 @@ Item {
onClicked: {
manager.cloudUserName = login.text
manager.cloudPassword = password.text
+ manager.saveCloudPassword = savePassword.checked
manager.savePreferences()
stackView.pop()
}