Browse Source

cosigner pool: don't show both sign and send buttons

283
ThomasV 10 years ago
parent
commit
97ffa93fcf
  1. 3
      plugins/cosigner_pool.py

3
plugins/cosigner_pool.py

@ -123,6 +123,9 @@ class Plugin(BasePlugin):
if d.tx.is_complete(): if d.tx.is_complete():
self.send_button.hide() self.send_button.hide()
return return
if self.wallet.can_sign(d.tx):
self.send_button.hide()
return
for xpub, K, _hash in self.cosigner_list: for xpub, K, _hash in self.cosigner_list:
if self.cosigner_can_sign(d.tx, xpub): if self.cosigner_can_sign(d.tx, xpub):
self.send_button.show() self.send_button.show()

Loading…
Cancel
Save