ui: wallet recovery button padding, txs loader delay

This commit is contained in:
ardocrat 2024-05-18 20:10:22 +03:00
parent 209d2b8a1d
commit 119ca7d201
2 changed files with 2 additions and 1 deletions

View file

@ -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);
}); });

View file

@ -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)