tx: do not show qr code with empty text

This commit is contained in:
ardocrat 2024-05-20 19:38:21 +03:00
parent e1257b6bcb
commit b4ded324f9

View file

@ -708,6 +708,9 @@ impl WalletTransactions {
if self.tx_info_show_qr {
// Draw QR code content.
let text = self.tx_info_response_edit.clone();
if text.is_empty() {
self.tx_info_show_qr = false;
}
self.tx_info_qr_code_content.ui(ui, text.clone());
ui.add_space(6.0);
@ -724,7 +727,7 @@ impl WalletTransactions {
// Setup value to finalization input field.
self.tx_info_finalize_edit = result.value();
self.on_finalization_input_change(tx, wallet, modal, );
self.on_finalization_input_change(tx, wallet, modal, cb);
modal.enable_closing();
self.tx_info_show_scanner = false;