From c7418d4dc7d50f97f625de46f143999a56cc4a61 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 14 Jun 2022 20:10:20 +0200 Subject: [PATCH] Qt: payment received notification, show label and amount instead of key The key may be a bitcoin address, even for a lightning payment. --- electrum/gui/qt/main_window.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py index 801a9c6ce..ccb8371a3 100644 --- a/electrum/gui/qt/main_window.py +++ b/electrum/gui/qt/main_window.py @@ -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()