check wallet type in installwizard_load_wallet hook

This commit is contained in:
ThomasV 2015-10-01 12:37:46 +02:00
parent c45a6666b7
commit 87168282b9
3 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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