plugins: psbt_nostr: exclude 2FA wallets
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user