electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 87168282b9281829453de88d69a797f28f0a2f15
parent c45a6666b7cd1f7efd50e903573dd480d0483e75
Author: ThomasV <thomasv@electrum.org>
Date:   Thu,  1 Oct 2015 12:37:46 +0200

check wallet type in installwizard_load_wallet hook

Diffstat:
Mplugins/btchipwallet.py | 2++
Mplugins/keepkey.py | 2++
Mplugins/trezor.py | 2++
3 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/plugins/btchipwallet.py b/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 diff --git a/plugins/keepkey.py b/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 diff --git a/plugins/trezor.py b/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