fix: seedphrase backup endless loop

Fixes #2232
This commit is contained in:
Richard Ramos 2021-04-26 11:23:14 -04:00 committed by Iuri Matias
parent 6fd68c10f3
commit f01bbcb926
1 changed files with 17 additions and 17 deletions

View File

@ -182,8 +182,10 @@ ModalPopup {
color: Style.current.secondaryText color: Style.current.secondaryText
} }
Component {
id: removeSeedPhraseConfirmDialogComponent
ConfirmationDialog { ConfirmationDialog {
id: removeSeedPhraseConfirm id: confirmPopup
//% "Are you sure?" //% "Are you sure?"
title: qsTrId("are-you-sure?") title: qsTrId("are-you-sure?")
//% "You will not be able to see the whole seed phrase again" //% "You will not be able to see the whole seed phrase again"
@ -191,13 +193,11 @@ ModalPopup {
onConfirmButtonClicked: { onConfirmButtonClicked: {
profileModel.mnemonic.remove() profileModel.mnemonic.remove()
popup.close(); popup.close();
removeSeedPhraseConfirm.close(); confirmPopup.close();
} }
onClosed: { onClosed: {
seedWord1Idx = -1; destroy();
seedWord2Idx = -1; }
txtFieldWord.text = "";
validationError = "";
} }
} }
} }
@ -260,7 +260,7 @@ ModalPopup {
validationError = ""; validationError = "";
txtFieldWord.text = ""; txtFieldWord.text = "";
removeSeedPhraseConfirm.open(); openPopup(removeSeedPhraseConfirmDialogComponent);
} }
} }
} }