Browse Source

qml: followup 78d79290ad

master
Sander van Grieken 3 years ago
parent
commit
d0f3e048b9
  1. 12
      electrum/gui/qml/components/wizard/WCHaveSeed.qml

12
electrum/gui/qml/components/wizard/WCHaveSeed.qml

@ -173,7 +173,7 @@ WizardComponent {
placeholderText: cosigner ? qsTr('Enter cosigner seed') : qsTr('Enter your seed') placeholderText: cosigner ? qsTr('Enter cosigner seed') : qsTr('Enter your seed')
onTextChanged: { onTextChanged: {
validationTimer.restart() startValidationTimer()
} }
Rectangle { Rectangle {
@ -207,7 +207,7 @@ WizardComponent {
id: extendcb id: extendcb
Layout.columnSpan: 2 Layout.columnSpan: 2
text: qsTr('Extend seed with custom words') text: qsTr('Extend seed with custom words')
onCheckedChanged: validationTimer.restart() onCheckedChanged: startValidationTimer()
} }
TextField { TextField {
id: customwordstext id: customwordstext
@ -215,7 +215,7 @@ WizardComponent {
Layout.fillWidth: true Layout.fillWidth: true
Layout.columnSpan: 2 Layout.columnSpan: 2
placeholderText: qsTr('Enter your custom word(s)') placeholderText: qsTr('Enter your custom word(s)')
onTextChanged: validationTimer.restart() onTextChanged: startValidationTimer()
} }
} }
} }
@ -226,6 +226,12 @@ WizardComponent {
onValidationMessageChanged: validationtext.text = validationMessage onValidationMessageChanged: validationtext.text = validationMessage
} }
function startValidationTimer() {
valid = false
contentText.text = ''
validationTimer.restart()
}
Timer { Timer {
id: validationTimer id: validationTimer
interval: 500 interval: 500

Loading…
Cancel
Save