aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2019-04-24 14:14:36 +0200
committerselsta <selsta@sent.at>2019-04-24 14:14:36 +0200
commit24e7307a934460cf18d9799dbfda7980580c3b6c (patch)
treeda6f28da75f3e4792e6d125ec441ac89602bdfaf /components
parent358e1d23facbd10fefbb2bf04c45b98f0c728ad0 (diff)
downloadmonzero-gui-24e7307a934460cf18d9799dbfda7980580c3b6c.tar.gz
monzero-gui-24e7307a934460cf18d9799dbfda7980580c3b6c.tar.xz
monzero-gui-24e7307a934460cf18d9799dbfda7980580c3b6c.zip
components: hide password on dialog opening
Diffstat (limited to 'components')
-rw-r--r--components/NewPasswordDialog.qml3
-rw-r--r--components/PassphraseDialog.qml4
-rw-r--r--components/PasswordDialog.qml2
3 files changed, 9 insertions, 0 deletions
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