ui: hide recovery description when unavailable
This commit is contained in:
parent
85bd663c49
commit
f29527a891
1 changed files with 6 additions and 5 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue