Browse Source

check wallet type in installwizard_load_wallet hook

283
ThomasV 9 years ago
parent
commit
87168282b9
  1. 2
      plugins/btchipwallet.py
  2. 2
      plugins/keepkey.py
  3. 2
      plugins/trezor.py

2
plugins/btchipwallet.py

@ -95,6 +95,8 @@ class Plugin(BasePlugin):
@hook
def installwizard_load_wallet(self, wallet, window):
if type(wallet) != BTChipWallet:
return
self.load_wallet(wallet, window)
@hook

2
plugins/keepkey.py

@ -147,6 +147,8 @@ class Plugin(BasePlugin):
@hook
def installwizard_load_wallet(self, wallet, window):
if type(wallet) != KeepKeyWallet:
return
self.load_wallet(wallet, window)
@hook

2
plugins/trezor.py

@ -147,6 +147,8 @@ class Plugin(BasePlugin):
@hook
def installwizard_load_wallet(self, wallet, window):
if type(wallet) != TrezorWallet:
return
self.load_wallet(wallet, window)
@hook

Loading…
Cancel
Save