From cb55c656775264ec6b8eed8e827eea93c505f0d8 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Wed, 31 Jan 2024 10:28:10 +0000 Subject: [PATCH] qml wizard: WCWalletPassword: show warning if pw is too short --- electrum/gui/qml/components/wizard/WCWalletPassword.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/electrum/gui/qml/components/wizard/WCWalletPassword.qml b/electrum/gui/qml/components/wizard/WCWalletPassword.qml index d2629ae75..eafd6e7ee 100644 --- a/electrum/gui/qml/components/wizard/WCWalletPassword.qml +++ b/electrum/gui/qml/components/wizard/WCWalletPassword.qml @@ -68,5 +68,11 @@ WizardComponent { visible: password1.text != password2.text iconStyle: InfoTextArea.IconStyle.Warn } + InfoTextArea { + Layout.alignment: Qt.AlignCenter + text: qsTr('Password too short') + visible: (password1.text == password2.text) && !valid + iconStyle: InfoTextArea.IconStyle.Warn + } } }