parent
5d0eb942b0
commit
e7f1106f79
|
@ -146,15 +146,8 @@ ModalPopup {
|
||||||
text: qsTrId("a-deleted-account-cannot-be-retrieved-later.-only-press-yes-if-you-backed-up-your-key/seed-or-don't-care-about-this-account-anymore")
|
text: qsTrId("a-deleted-account-cannot-be-retrieved-later.-only-press-yes-if-you-backed-up-your-key/seed-or-don't-care-about-this-account-anymore")
|
||||||
icon: StandardIcon.Warning
|
icon: StandardIcon.Warning
|
||||||
standardButtons: StandardButton.Yes | StandardButton.No
|
standardButtons: StandardButton.Yes | StandardButton.No
|
||||||
onAccepted: {
|
onYes: {
|
||||||
const error = RootStore.deleteAccount(currentAccount.address)
|
RootStore.deleteAccount(currentAccount.address)
|
||||||
if (error) {
|
|
||||||
Global.playErrorSound();
|
|
||||||
deleteError.text = error
|
|
||||||
deleteError.open()
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Change active account to the first
|
// Change active account to the first
|
||||||
changeSelectedAccount(0)
|
changeSelectedAccount(0)
|
||||||
popup.close();
|
popup.close();
|
||||||
|
|
Loading…
Reference in New Issue