Browse Source

kivy: set_label with tx message

283
ThomasV 9 years ago
parent
commit
9510f22039
  1. 5
      gui/kivy/uix/screens.py

5
gui/kivy/uix/screens.py

@ -288,12 +288,13 @@ class SendScreen(CScreen):
if fee >= config.get('confirm_fee', 100000): if fee >= config.get('confirm_fee', 100000):
msg.append(_('Warning')+ ': ' + _("The fee for this transaction seems unusually high.")) msg.append(_('Warning')+ ': ' + _("The fee for this transaction seems unusually high."))
msg.append(_("Enter your PIN code to proceed")) msg.append(_("Enter your PIN code to proceed"))
self.app.protected('\n'.join(msg), self.send_tx, (tx,)) self.app.protected('\n'.join(msg), self.send_tx, (tx, message))
def send_tx(self, tx, password): def send_tx(self, tx, message, password):
def on_success(tx): def on_success(tx):
if tx.is_complete(): if tx.is_complete():
self.app.broadcast(tx, self.payment_request) self.app.broadcast(tx, self.payment_request)
self.app.wallet.set_label(tx.hash(), message)
else: else:
self.app.tx_dialog(tx) self.app.tx_dialog(tx)
def on_failure(error): def on_failure(error):

Loading…
Cancel
Save