mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-26 14:32:01 +00:00
parent
8889bbdb08
commit
6c4fab1a20
@ -146,16 +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")
|
||||
icon: StandardIcon.Warning
|
||||
standardButtons: StandardButton.Yes | StandardButton.No
|
||||
onAccepted: {
|
||||
const error = RootStore.deleteAccount(currentAccount.address)
|
||||
if (error) {
|
||||
errorSound.play()
|
||||
deleteError.text = error
|
||||
deleteError.open()
|
||||
return
|
||||
}
|
||||
|
||||
// Change active account to the first
|
||||
onYes: {
|
||||
RootStore.deleteAccount(currentAccount.address)// Change active account to the first
|
||||
changeSelectedAccount(0)
|
||||
popup.close();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user