tx: do not show qr code with empty text
This commit is contained in:
parent
e1257b6bcb
commit
b4ded324f9
1 changed files with 4 additions and 1 deletions
|
@ -708,6 +708,9 @@ impl WalletTransactions {
|
||||||
if self.tx_info_show_qr {
|
if self.tx_info_show_qr {
|
||||||
// Draw QR code content.
|
// Draw QR code content.
|
||||||
let text = self.tx_info_response_edit.clone();
|
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());
|
self.tx_info_qr_code_content.ui(ui, text.clone());
|
||||||
ui.add_space(6.0);
|
ui.add_space(6.0);
|
||||||
|
|
||||||
|
@ -724,7 +727,7 @@ impl WalletTransactions {
|
||||||
|
|
||||||
// Setup value to finalization input field.
|
// Setup value to finalization input field.
|
||||||
self.tx_info_finalize_edit = result.value();
|
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();
|
modal.enable_closing();
|
||||||
self.tx_info_show_scanner = false;
|
self.tx_info_show_scanner = false;
|
||||||
|
|
Loading…
Reference in a new issue