1
0

Qt: payment received notification, show label and amount instead of key

The key may be a bitcoin address, even for a lightning payment.
This commit is contained in:
ThomasV
2022-06-14 20:10:20 +02:00
parent 7df24f0adf
commit c7418d4dc7

View File

@@ -1820,7 +1820,12 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):
if req is None:
return
if status == PR_PAID:
self.notify(_('Payment received') + '\n' + key)
msg = _('Payment received:')
amount = req.get_amount_sat()
if amount:
msg += ' ' + self.format_amount_and_units(amount)
msg += '\n' + req.get_message()
self.notify(msg)
self.request_list.delete_item(key)
self.receive_tabs.setVisible(False)
self.need_update.set()