ui: wallet recovery button padding, txs loader delay
This commit is contained in:
parent
209d2b8a1d
commit
119ca7d201
2 changed files with 2 additions and 1 deletions
|
@ -95,6 +95,7 @@ impl RecoverySetup {
|
||||||
|
|
||||||
// Draw button to restore the wallet.
|
// Draw button to restore the wallet.
|
||||||
let recover_text = format!("{} {}", LIFEBUOY, t!("wallets.recover"));
|
let recover_text = format!("{} {}", LIFEBUOY, t!("wallets.recover"));
|
||||||
|
ui.add_space(4.0);
|
||||||
View::colored_text_button(ui, recover_text, Colors::GREEN, Colors::BUTTON, || {
|
View::colored_text_button(ui, recover_text, Colors::GREEN, Colors::BUTTON, || {
|
||||||
wallet.delete_db(true);
|
wallet.delete_db(true);
|
||||||
});
|
});
|
||||||
|
|
|
@ -186,7 +186,7 @@ impl WalletTransactions {
|
||||||
|
|
||||||
// Show list of transactions.
|
// Show list of transactions.
|
||||||
let now = SystemTime::now().duration_since(UNIX_EPOCH).unwrap().as_millis();
|
let now = SystemTime::now().duration_since(UNIX_EPOCH).unwrap().as_millis();
|
||||||
let refresh = self.manual_sync.unwrap_or(0) + 2400 > now;
|
let refresh = self.manual_sync.unwrap_or(0) + 1600 > now;
|
||||||
let refresh_resp = PullToRefresh::new(refresh)
|
let refresh_resp = PullToRefresh::new(refresh)
|
||||||
.can_refresh(!refresh && !wallet.syncing())
|
.can_refresh(!refresh && !wallet.syncing())
|
||||||
.min_refresh_distance(70.0)
|
.min_refresh_distance(70.0)
|
||||||
|
|
Loading…
Reference in a new issue