mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
filter wallet types
This commit is contained in:
parent
2b10ccdcc4
commit
bc1ae4fe94
1 changed files with 3 additions and 1 deletions
|
@ -346,10 +346,12 @@ class InstallWizard(QDialog):
|
|||
if not wallet_type:
|
||||
return
|
||||
elif wallet_type == 'hardware':
|
||||
hardware_wallets = [('trezor',_("Trezor")), ('btchip',_("BTChip"))]
|
||||
hardware_wallets = map(lambda x:(x[1],x[2]), filter(lambda x:x[0]=='hardware', electrum.wallet.wallet_types))
|
||||
wallet_type = self.choice(_("Hardware Wallet"), 'Select your hardware wallet', hardware_wallets)
|
||||
if not wallet_type:
|
||||
return
|
||||
elif wallet_type == 'twofactor':
|
||||
wallet_type = '2fa'
|
||||
|
||||
if action == 'create':
|
||||
self.storage.put('wallet_type', wallet_type)
|
||||
|
|
Loading…
Add table
Reference in a new issue