From f29527a891bd1f350660e0909ac2bc45c546d69e Mon Sep 17 00:00:00 2001 From: ardocrat Date: Sun, 5 May 2024 16:18:56 +0300 Subject: [PATCH] ui: hide recovery description when unavailable --- src/gui/views/wallets/setup/recovery.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/gui/views/wallets/setup/recovery.rs b/src/gui/views/wallets/setup/recovery.rs index 1b696e5..49a24c8 100644 --- a/src/gui/views/wallets/setup/recovery.rs +++ b/src/gui/views/wallets/setup/recovery.rs @@ -76,17 +76,18 @@ impl RecoverySetup { .color(Colors::RED)); } else if !wallet.is_repairing() { ui.add_space(6.0); + // Draw button to repair the wallet. let repair_text = format!("{} {}", STETHOSCOPE, t!("wallets.repair_wallet")); View::button(ui, repair_text, Colors::GOLD, || { wallet.repair(); }); - } - ui.add_space(6.0); - ui.label(RichText::new(t!("wallets.repair_desc")) - .size(16.0) - .color(Colors::INACTIVE_TEXT)); + ui.add_space(6.0); + ui.label(RichText::new(t!("wallets.repair_desc")) + .size(16.0) + .color(Colors::INACTIVE_TEXT)); + } ui.add_space(6.0); View::horizontal_line(ui, Colors::ITEM_STROKE);