ThomasV 2 years ago
parent
commit
48bb4867a4
  1. 5
      electrum/gui/qt/send_tab.py

5
electrum/gui/qt/send_tab.py

@ -682,11 +682,12 @@ class SendTab(QWidget, MessageBoxMixin, Logger):
_('Funds will be sent to the invoice fallback address.')
])
choices[3] = msg
if not choices:
raise NotEnoughFunds()
msg = _('You cannot pay that invoice using Lightning.')
if self.wallet.lnworker.channels:
msg += '\n' + _('Your channels can send {}.').format(self.format_amount(num_sats_can_send) + self.base_unit())
if not choices:
self.window.show_error(msg)
return
r = self.window.query_choice(msg, choices)
if r is not None:
self.save_pending_invoice()

Loading…
Cancel
Save