From 23eadf9afe93e66a724afe0b447e5b4b53a1c22b Mon Sep 17 00:00:00 2001 From: Tom Dewey Date: Mon, 18 Dec 2023 16:20:56 +0000 Subject: [PATCH] qml: Use regular password field But, as a consideration for users wanting to verify their password, add a 2s dwell time before the characters are masked. This timeout is prematurely terminated in the event that you enter another key. --- src/OptionsPopup.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/OptionsPopup.qml b/src/OptionsPopup.qml index 94be42c..45d6ade 100644 --- a/src/OptionsPopup.qml +++ b/src/OptionsPopup.qml @@ -153,7 +153,8 @@ Window { } TextField { id: fieldUserPassword - echoMode: TextInput.PasswordEchoOnEdit + echoMode: TextInput.Password + passwordMaskDelay: 2000 //ms Layout.minimumWidth: 200 selectByMouse: true property bool alreadyCrypted: false