Browse Source

on_payment_succeeded: show description

bip39-recovery
ThomasV 5 years ago
parent
commit
e99a38e538
  1. 3
      electrum/gui/kivy/main_window.py
  2. 5
      electrum/gui/qt/main_window.py

3
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):

5
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):

Loading…
Cancel
Save