mirror of
https://code.gri.mw/GUI/grim.git
synced 2026-07-11 01:08:54 +00:00
ui: wallet recovery button padding, txs loader delay
This commit is contained in:
@@ -95,6 +95,7 @@ impl RecoverySetup {
|
||||
|
||||
// Draw button to restore the wallet.
|
||||
let recover_text = format!("{} {}", LIFEBUOY, t!("wallets.recover"));
|
||||
ui.add_space(4.0);
|
||||
View::colored_text_button(ui, recover_text, Colors::GREEN, Colors::BUTTON, || {
|
||||
wallet.delete_db(true);
|
||||
});
|
||||
|
||||
@@ -186,7 +186,7 @@ impl WalletTransactions {
|
||||
|
||||
// Show list of transactions.
|
||||
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)
|
||||
.can_refresh(!refresh && !wallet.syncing())
|
||||
.min_refresh_distance(70.0)
|
||||
|
||||
Reference in New Issue
Block a user