mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
QML UI: remove "show password" switch and only show pw on first entry
Like the subject says. We do not want the password to be made visible, so a switch to show it, is useless and is therefore removed. Futher, the entry mode is set to PasswordEchoOnEdit, which causes the passwd to be visible (for easy entry), but can't be made visible again after save/end edit. Fixes: #512 Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
e1e1c4b650
commit
bb7dcc25c7
1 changed files with 1 additions and 20 deletions
|
@ -79,7 +79,7 @@ Item {
|
|||
TextField {
|
||||
id: password
|
||||
text: manager.cloudPassword
|
||||
echoMode: TextInput.Password
|
||||
echoMode: TextInput.PasswordEchoOnEdit
|
||||
inputMethodHints: Qt.ImhSensitiveData |
|
||||
Qt.ImhHiddenText |
|
||||
Qt.ImhNoAutoUppercase
|
||||
|
@ -89,25 +89,6 @@ Item {
|
|||
}
|
||||
}
|
||||
|
||||
GridLayout {
|
||||
columns: 2
|
||||
|
||||
Kirigami.Label {
|
||||
text: qsTr("Show password")
|
||||
Layout.preferredWidth: col1Width
|
||||
}
|
||||
SsrfSwitch {
|
||||
checked: false
|
||||
id: showPassword
|
||||
Layout.preferredWidth: col2Width
|
||||
onCheckedChanged: {
|
||||
if (checked)
|
||||
password.text = "" // don't show a hidden password
|
||||
password.echoMode = checked ? TextInput.Normal : TextInput.Password
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Kirigami.Label {
|
||||
text: qsTr("PIN")
|
||||
visible: rootItem.showPin
|
||||
|
|
Loading…
Reference in a new issue