electrum

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

commit 8ae1dc4d099a0c9d31117854d7678aecaa1d2ec8
parent 029c272d57fadb7002d92c8d7c51451b2f1b8704
Author: ThomasV <thomasv@electrum.org>
Date:   Sat, 25 Jun 2016 19:32:43 +0200

do not register unsupported wallet types, because they are proposed in the install wizard

Diffstat:
Mlib/plugins.py | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/lib/plugins.py b/lib/plugins.py @@ -62,14 +62,11 @@ class Plugins(DaemonThread): m = loader.find_module(name).load_module(name) d = m.__dict__ gui_good = self.gui_name in d.get('available_for', []) - # We register wallet types even if the GUI isn't provided - # otherwise the user gets a misleading message like - # "Unknown wallet type: 2fa" + if not gui_good: + continue details = d.get('registers_wallet_type') if details: self.register_plugin_wallet(name, gui_good, details) - if not gui_good: - continue self.descriptions[name] = d if not d.get('requires_wallet_type') and self.config.get('use_' + name): try: