1
0

qml: WCHaveMasterKey: (fix) re-verify text in onTextChanged

fixes https://github.com/spesmilo/electrum/issues/8853

This is a bit ugly, but activeFocus is declared as final and cannot be overridden directly...
```
  1.42 | W | gui.qml.qeapp | file:///home/user/wspace/electrum/electrum/gui/qml/components/controls/ElTextArea.qml:23:5: Cannot override FINAL property
```
This commit is contained in:
SomberNight
2024-01-30 02:11:01 +00:00
parent 522e9485c1
commit 67b57da402
2 changed files with 3 additions and 1 deletions

View File

@@ -129,8 +129,9 @@ WizardComponent {
font.family: FixedFont
wrapMode: TextEdit.WrapAnywhere
onTextChanged: {
if (activeFocus)
if (anyActiveFocus) {
verifyMasterKey(text)
}
}
inputMethodHints: Qt.ImhSensitiveData | Qt.ImhNoPredictiveText | Qt.ImhNoAutoUppercase
background: PaneInsetBackground {