fix(StatusSeedPhraseInput): added trim() also when seedWord selected from list (#613)

Fixes issue on Windows where empty spaces are insterted in the input
field together with the word
This commit is contained in:
Alexandra Betouni 2022-03-31 19:40:21 +03:00 committed by GitHub
parent 07fa2a1b0c
commit 0a2cf6ab6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ Item {
cursorShape: Qt.PointingHandCursor cursorShape: Qt.PointingHandCursor
hoverEnabled: true hoverEnabled: true
onClicked: { onClicked: {
seedWordInput.text = seedWord; seedWordInput.text = seedWord.trim();
seedWordInput.input.edit.cursorPosition = seedWordInput.text.length; seedWordInput.input.edit.cursorPosition = seedWordInput.text.length;
root.doneInsertingWord(seedWordInput.text); root.doneInsertingWord(seedWordInput.text);
seedSuggestionsList.model = 0; seedSuggestionsList.model = 0;