1
0

plugins: psbt_nostr: exclude 2FA wallets

This commit is contained in:
Sander van Grieken
2025-04-16 10:05:54 +02:00
parent 182accb9fb
commit 4e9ec5d2ea
2 changed files with 4 additions and 0 deletions

View File

@@ -109,6 +109,8 @@ class Plugin(PsbtNostrPlugin):
self.remove_cosigner_wallet(wallet)
if not isinstance(wallet, Multisig_Wallet):
return
if wallet.wallet_type == '2fa':
return
self.add_cosigner_wallet(wallet, QmlCosignerWallet(wallet, self))

View File

@@ -55,6 +55,8 @@ class Plugin(PsbtNostrPlugin):
def load_wallet(self, wallet: 'Abstract_Wallet', window: 'ElectrumWindow'):
if not isinstance(wallet, Multisig_Wallet):
return
if wallet.wallet_type == '2fa':
return
self.add_cosigner_wallet(wallet, QtCosignerWallet(wallet, window))
@hook