From 24e7307a934460cf18d9799dbfda7980580c3b6c Mon Sep 17 00:00:00 2001 From: selsta Date: Wed, 24 Apr 2019 14:14:36 +0200 Subject: [PATCH] components: hide password on dialog opening --- components/NewPasswordDialog.qml | 3 +++ components/PassphraseDialog.qml | 4 ++++ components/PasswordDialog.qml | 2 ++ 3 files changed, 9 insertions(+) diff --git a/components/NewPasswordDialog.qml b/components/NewPasswordDialog.qml index 11e31008..1bbeb94e 100644 --- a/components/NewPasswordDialog.qml +++ b/components/NewPasswordDialog.qml @@ -49,6 +49,9 @@ Item { signal closeCallback() function open() { + isHidden = true + passwordInput1.echoMode = TextInput.Password; + passwordInput2.echoMode = TextInput.Password; inactiveOverlay.visible = true leftPanel.enabled = false middlePanel.enabled = false diff --git a/components/PassphraseDialog.qml b/components/PassphraseDialog.qml index a8b47f12..403637ff 100644 --- a/components/PassphraseDialog.qml +++ b/components/PassphraseDialog.qml @@ -51,6 +51,10 @@ Item { signal closeCallback() function open(walletName, errorText) { + isHidden = true + passphaseInput1.echoMode = TextInput.Password; + passphaseInput2.echoMode = TextInput.Password; + inactiveOverlay.visible = true root.walletName = walletName ? walletName : "" diff --git a/components/PasswordDialog.qml b/components/PasswordDialog.qml index e292603b..a04974d0 100644 --- a/components/PasswordDialog.qml +++ b/components/PasswordDialog.qml @@ -55,6 +55,8 @@ Item { signal closeCallback() function open(walletName, errorText) { + isHidden = true + passwordInput.echoMode = TextInput.Password passwordInput.text = "" passwordInput.forceActiveFocus(); inactiveOverlay.visible = true // draw appwindow inactive