on_payment_succeeded: show description
This commit is contained in:
@@ -250,7 +250,8 @@ class ElectrumWindow(App):
|
|||||||
self.invoice_popup.update_status()
|
self.invoice_popup.update_status()
|
||||||
|
|
||||||
def on_payment_succeeded(self, event, key):
|
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()
|
self._trigger_update_history()
|
||||||
|
|
||||||
def on_payment_failed(self, event, key, reason):
|
def on_payment_failed(self, event, key, reason):
|
||||||
|
|||||||
@@ -1484,8 +1484,9 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):
|
|||||||
return
|
return
|
||||||
self.invoice_list.update_item(key, req)
|
self.invoice_list.update_item(key, req)
|
||||||
|
|
||||||
def on_payment_succeeded(self, key, description=None):
|
def on_payment_succeeded(self, key):
|
||||||
self.show_message(_('Payment succeeded'))
|
description = self.wallet.get_label(key)
|
||||||
|
self.show_message(_('Payment succeeded') + '\n\n' + description)
|
||||||
self.need_update.set()
|
self.need_update.set()
|
||||||
|
|
||||||
def on_payment_failed(self, key, reason):
|
def on_payment_failed(self, key, reason):
|
||||||
|
|||||||
Reference in New Issue
Block a user