Skip to content

Commit

Permalink
kivy request dialog: follow-up c95791d
Browse files Browse the repository at this point in the history
related #7929
  • Loading branch information
SomberNight committed Aug 12, 2022
1 parent fceceae commit 13570a4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions electrum/gui/kivy/uix/dialogs/request_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,6 @@ def on_mode(self, instance, x):
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:
Expand Down
2 changes: 1 addition & 1 deletion electrum/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -2847,7 +2847,7 @@ def get_help_texts_for_receive_request(self, req: Invoice) -> ReceiveRequestHelp
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')
Expand Down

0 comments on commit 13570a4

Please sign in to comment.