check wallet type in installwizard_load_wallet hook
This commit is contained in:
parent
c45a6666b7
commit
87168282b9
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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…
Reference in New Issue