components: hide password on dialog opening

This commit is contained in:
selsta 2019-04-24 14:14:36 +02:00
parent 358e1d23fa
commit 24e7307a93
No known key found for this signature in database
GPG Key ID: 2EA0A99A8B07AE5E
3 changed files with 9 additions and 0 deletions

View File

@ -49,6 +49,9 @@ Item {
signal closeCallback() signal closeCallback()
function open() { function open() {
isHidden = true
passwordInput1.echoMode = TextInput.Password;
passwordInput2.echoMode = TextInput.Password;
inactiveOverlay.visible = true inactiveOverlay.visible = true
leftPanel.enabled = false leftPanel.enabled = false
middlePanel.enabled = false middlePanel.enabled = false

View File

@ -51,6 +51,10 @@ Item {
signal closeCallback() signal closeCallback()
function open(walletName, errorText) { function open(walletName, errorText) {
isHidden = true
passphaseInput1.echoMode = TextInput.Password;
passphaseInput2.echoMode = TextInput.Password;
inactiveOverlay.visible = true inactiveOverlay.visible = true
root.walletName = walletName ? walletName : "" root.walletName = walletName ? walletName : ""

View File

@ -55,6 +55,8 @@ Item {
signal closeCallback() signal closeCallback()
function open(walletName, errorText) { function open(walletName, errorText) {
isHidden = true
passwordInput.echoMode = TextInput.Password
passwordInput.text = "" passwordInput.text = ""
passwordInput.forceActiveFocus(); passwordInput.forceActiveFocus();
inactiveOverlay.visible = true // draw appwindow inactive inactiveOverlay.visible = true // draw appwindow inactive