tcheck wallet type in installwizard_load_wallet hook - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 87168282b9281829453de88d69a797f28f0a2f15
DIR parent c45a6666b7cd1f7efd50e903573dd480d0483e75
HTML Author: ThomasV <thomasv@electrum.org>
Date: Thu, 1 Oct 2015 12:37:46 +0200
check wallet type in installwizard_load_wallet hook
Diffstat:
M plugins/btchipwallet.py | 2 ++
M plugins/keepkey.py | 2 ++
M plugins/trezor.py | 2 ++
3 files changed, 6 insertions(+), 0 deletions(-)
---
DIR diff --git a/plugins/btchipwallet.py b/plugins/btchipwallet.py
t@@ -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
DIR diff --git a/plugins/keepkey.py b/plugins/keepkey.py
t@@ -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
DIR diff --git a/plugins/trezor.py b/plugins/trezor.py
t@@ -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