From 13570a465c0c017803f45cb4ad96f2b349ffc2bb Mon Sep 17 00:00:00 2001 From: SomberNight Date: Fri, 12 Aug 2022 11:10:54 +0000 Subject: [PATCH] kivy request dialog: follow-up https://github.com/spesmilo/electrum/commit/c95791d7eeff6f64968e391c78e344e0a02e1669 related https://github.com/spesmilo/electrum/pull/7929 --- electrum/gui/kivy/uix/dialogs/request_dialog.py | 3 --- electrum/wallet.py | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/electrum/gui/kivy/uix/dialogs/request_dialog.py b/electrum/gui/kivy/uix/dialogs/request_dialog.py index 51b5a11b2..314cb05a2 100644 --- a/electrum/gui/kivy/uix/dialogs/request_dialog.py +++ b/electrum/gui/kivy/uix/dialogs/request_dialog.py @@ -172,9 +172,6 @@ class RequestDialog(Factory.Popup): qr_data = qr_data.upper() if qr_data: self.ids.qr.set_data(qr_data) - self.ids.qr.opacity = 1 - else: - self.ids.qr.opacity = 0 if not qr_data and self.error_text: self.show_text = True else: diff --git a/electrum/wallet.py b/electrum/wallet.py index 16923447e..521ff735a 100644 --- a/electrum/wallet.py +++ b/electrum/wallet.py @@ -2847,7 +2847,7 @@ class Abstract_Wallet(ABC, Logger, EventListener): if status == PR_EXPIRED: address_help = URI_help = ln_help = _('This request has expired') - is_amt_too_small_for_onchain = amount_sat < self.dust_threshold() + is_amt_too_small_for_onchain = amount_sat and amount_sat < self.dust_threshold() if not addr: address_is_error = True address_help = _('This request cannot be paid on-chain')