From e99a38e53824f5875ad3af937f83faff696b6e3f Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 17 Jun 2020 10:37:22 +0200 Subject: [PATCH] on_payment_succeeded: show description --- electrum/gui/kivy/main_window.py | 3 ++- electrum/gui/qt/main_window.py | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/electrum/gui/kivy/main_window.py b/electrum/gui/kivy/main_window.py index eb354cee8..d0e8ebf60 100644 --- a/electrum/gui/kivy/main_window.py +++ b/electrum/gui/kivy/main_window.py @@ -250,7 +250,8 @@ class ElectrumWindow(App): self.invoice_popup.update_status() def on_payment_succeeded(self, event, key): - self.show_info(_('Payment was sent')) + description = self.wallet.get_label(key) + self.show_info(_('Payment succeeded') + '\n\n' + description) self._trigger_update_history() def on_payment_failed(self, event, key, reason): diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py index a0227b7ec..0f464c241 100644 --- a/electrum/gui/qt/main_window.py +++ b/electrum/gui/qt/main_window.py @@ -1484,8 +1484,9 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger): return self.invoice_list.update_item(key, req) - def on_payment_succeeded(self, key, description=None): - self.show_message(_('Payment succeeded')) + def on_payment_succeeded(self, key): + description = self.wallet.get_label(key) + self.show_message(_('Payment succeeded') + '\n\n' + description) self.need_update.set() def on_payment_failed(self, key, reason):