From 4ad287e73285021f30924d9c536dc8dbe73836d8 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Fri, 19 Apr 2024 12:44:45 +0300 Subject: [PATCH] fix: wallet delete confirmation --- src/gui/views/wallets/setup/recovery.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/gui/views/wallets/setup/recovery.rs b/src/gui/views/wallets/setup/recovery.rs index b849f71..bcb004b 100644 --- a/src/gui/views/wallets/setup/recovery.rs +++ b/src/gui/views/wallets/setup/recovery.rs @@ -136,7 +136,7 @@ impl RecoverySetup { } DELETE_CONFIRMATION_MODAL => { Modal::ui(ui.ctx(), |ui, modal| { - self.deletion_modal_ui(ui, wallet, modal, cb); + self.deletion_modal_ui(ui, wallet, modal); }); } _ => {} @@ -242,8 +242,7 @@ impl RecoverySetup { fn deletion_modal_ui(&mut self, ui: &mut egui::Ui, wallet: &mut Wallet, - modal: &Modal, - cb: &dyn PlatformCallbacks) { + modal: &Modal) { ui.add_space(8.0); ui.vertical_centered(|ui| { ui.label(RichText::new(t!("wallets.delete_conf")) @@ -265,9 +264,8 @@ impl RecoverySetup { }); columns[1].vertical_centered_justified(|ui| { View::button(ui, t!("delete"), Colors::WHITE, || { - modal.disable_closing(); - wallet.set_reopen(true); wallet.delete_wallet(); + modal.close(); }); }); });