fix #7920
This commit is contained in:
@@ -682,11 +682,12 @@ class SendTab(QWidget, MessageBoxMixin, Logger):
|
|||||||
_('Funds will be sent to the invoice fallback address.')
|
_('Funds will be sent to the invoice fallback address.')
|
||||||
])
|
])
|
||||||
choices[3] = msg
|
choices[3] = msg
|
||||||
if not choices:
|
|
||||||
raise NotEnoughFunds()
|
|
||||||
msg = _('You cannot pay that invoice using Lightning.')
|
msg = _('You cannot pay that invoice using Lightning.')
|
||||||
if self.wallet.lnworker.channels:
|
if self.wallet.lnworker.channels:
|
||||||
msg += '\n' + _('Your channels can send {}.').format(self.format_amount(num_sats_can_send) + self.base_unit())
|
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)
|
r = self.window.query_choice(msg, choices)
|
||||||
if r is not None:
|
if r is not None:
|
||||||
self.save_pending_invoice()
|
self.save_pending_invoice()
|
||||||
|
|||||||
Reference in New Issue
Block a user