electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit e99a38e53824f5875ad3af937f83faff696b6e3f
parent 3c6b049f9ae64a21d369806ecb7e945bc6c8364e
Author: ThomasV <thomasv@electrum.org>
Date:   Wed, 17 Jun 2020 10:37:22 +0200

on_payment_succeeded: show description

Diffstat:
Melectrum/gui/kivy/main_window.py | 3++-
Melectrum/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 @@ -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 @@ -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):