From d0f3e048b993bca87622a2c464273ca844a7b677 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Sat, 25 Mar 2023 13:14:50 +0100 Subject: [PATCH] qml: followup 78d79290ad156122075d38c7ba7786d13821d2fd --- electrum/gui/qml/components/wizard/WCHaveSeed.qml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/electrum/gui/qml/components/wizard/WCHaveSeed.qml b/electrum/gui/qml/components/wizard/WCHaveSeed.qml index 6fe39f1e8..596b7ddce 100644 --- a/electrum/gui/qml/components/wizard/WCHaveSeed.qml +++ b/electrum/gui/qml/components/wizard/WCHaveSeed.qml @@ -173,7 +173,7 @@ WizardComponent { placeholderText: cosigner ? qsTr('Enter cosigner seed') : qsTr('Enter your seed') onTextChanged: { - validationTimer.restart() + startValidationTimer() } Rectangle { @@ -207,7 +207,7 @@ WizardComponent { id: extendcb Layout.columnSpan: 2 text: qsTr('Extend seed with custom words') - onCheckedChanged: validationTimer.restart() + onCheckedChanged: startValidationTimer() } TextField { id: customwordstext @@ -215,7 +215,7 @@ WizardComponent { Layout.fillWidth: true Layout.columnSpan: 2 placeholderText: qsTr('Enter your custom word(s)') - onTextChanged: validationTimer.restart() + onTextChanged: startValidationTimer() } } } @@ -226,6 +226,12 @@ WizardComponent { onValidationMessageChanged: validationtext.text = validationMessage } + function startValidationTimer() { + valid = false + contentText.text = '' + validationTimer.restart() + } + Timer { id: validationTimer interval: 500