From 693062c36720f4a9c9bbd0d9093a79385fb61388 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Sun, 19 May 2024 14:26:41 +0300 Subject: [PATCH] txs: do not show only cancel button when wallet was not loaded --- src/gui/views/wallets/wallet/txs.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gui/views/wallets/wallet/txs.rs b/src/gui/views/wallets/wallet/txs.rs index 76bdb03..a3a1147 100644 --- a/src/gui/views/wallets/wallet/txs.rs +++ b/src/gui/views/wallets/wallet/txs.rs @@ -334,8 +334,7 @@ impl WalletTransactions { } // Draw finalization button for tx that can be finalized. - if ((!can_show_info && !self.tx_info_finalizing) || can_show_info) && tx.can_finalize && - wallet_loaded { + if ((!can_show_info && !self.tx_info_finalizing) || can_show_info) && tx.can_finalize { let (icon, color) = if !can_show_info && self.tx_info_finalize { (FILE_TEXT, None) } else { @@ -356,7 +355,7 @@ impl WalletTransactions { } // Draw button to repost transaction. - if ((!can_show_info && !self.tx_info_finalizing) || can_show_info) && wallet_loaded && + if ((!can_show_info && !self.tx_info_finalizing) || can_show_info) && tx.can_repost(data) { View::item_button(ui, Rounding::default(),