ton_payment_succeeded: show description - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit e99a38e53824f5875ad3af937f83faff696b6e3f DIR parent 3c6b049f9ae64a21d369806ecb7e945bc6c8364e HTML Author: ThomasV <thomasv@electrum.org> Date: Wed, 17 Jun 2020 10:37:22 +0200 on_payment_succeeded: show description Diffstat: M electrum/gui/kivy/main_window.py | 3 ++- M electrum/gui/qt/main_window.py | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) --- DIR diff --git a/electrum/gui/kivy/main_window.py b/electrum/gui/kivy/main_window.py t@@ -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): DIR diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py t@@ -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):