cosigner_pool plugin: don't show button in tx dialog before finalizing
(previously button would be shown for a watch-only multisig wallet)
This commit is contained in:
@@ -153,7 +153,7 @@ class Plugin(BasePlugin):
|
|||||||
|
|
||||||
@hook
|
@hook
|
||||||
def transaction_dialog_update(self, d: 'TxDialog'):
|
def transaction_dialog_update(self, d: 'TxDialog'):
|
||||||
if d.tx.is_complete() or d.wallet.can_sign(d.tx):
|
if not d.finalized or d.tx.is_complete() or d.wallet.can_sign(d.tx):
|
||||||
d.cosigner_send_button.setVisible(False)
|
d.cosigner_send_button.setVisible(False)
|
||||||
return
|
return
|
||||||
for window, xpub, K, _hash in self.cosigner_list:
|
for window, xpub, K, _hash in self.cosigner_list:
|
||||||
|
|||||||
Reference in New Issue
Block a user