ui: hide recovery description when unavailable

This commit is contained in:
ardocrat 2024-05-05 16:18:56 +03:00
parent 85bd663c49
commit f29527a891

View file

@ -76,17 +76,18 @@ impl RecoverySetup {
.color(Colors::RED)); .color(Colors::RED));
} else if !wallet.is_repairing() { } else if !wallet.is_repairing() {
ui.add_space(6.0); ui.add_space(6.0);
// Draw button to repair the wallet. // Draw button to repair the wallet.
let repair_text = format!("{} {}", STETHOSCOPE, t!("wallets.repair_wallet")); let repair_text = format!("{} {}", STETHOSCOPE, t!("wallets.repair_wallet"));
View::button(ui, repair_text, Colors::GOLD, || { View::button(ui, repair_text, Colors::GOLD, || {
wallet.repair(); wallet.repair();
}); });
}
ui.add_space(6.0); ui.add_space(6.0);
ui.label(RichText::new(t!("wallets.repair_desc")) ui.label(RichText::new(t!("wallets.repair_desc"))
.size(16.0) .size(16.0)
.color(Colors::INACTIVE_TEXT)); .color(Colors::INACTIVE_TEXT));
}
ui.add_space(6.0); ui.add_space(6.0);
View::horizontal_line(ui, Colors::ITEM_STROKE); View::horizontal_line(ui, Colors::ITEM_STROKE);