mirror of
https://code.gri.mw/GUI/grim.git
synced 2026-07-14 18:58:54 +00:00
txs: do not show only cancel button when wallet was not loaded
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user