Browse Source

follow-up a0ec2690cf

dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
ThomasV 5 years ago
parent
commit
76c22f3e06
  1. 14
      electrum/gui/qt/main_window.py

14
electrum/gui/qt/main_window.py

@ -1871,9 +1871,11 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):
except BestEffortRequestFailed as e: except BestEffortRequestFailed as e:
return False, repr(e) return False, repr(e)
# success # success
key = invoice['id'] if invoice:
txid = tx.txid() key = invoice['id']
self.wallet.set_paid(key, txid) txid = tx.txid()
self.wallet.set_paid(key, txid)
self.wallet.set_label(txid, invoice['message'])
if pr: if pr:
self.payment_request = None self.payment_request = None
refund_address = self.wallet.get_receiving_address() refund_address = self.wallet.get_receiving_address()
@ -1889,10 +1891,8 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):
def broadcast_done(result): def broadcast_done(result):
# GUI thread # GUI thread
if result: if result:
status, msg = result success, msg = result
if status: if success:
if tx_desc is not None and tx.is_complete():
self.wallet.set_label(tx.txid(), tx_desc)
parent.show_message(_('Payment sent.') + '\n' + msg) parent.show_message(_('Payment sent.') + '\n' + msg)
self.invoice_list.update() self.invoice_list.update()
self.do_clear() self.do_clear()

Loading…
Cancel
Save