From 8ae1dc4d099a0c9d31117854d7678aecaa1d2ec8 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sat, 25 Jun 2016 19:32:43 +0200 Subject: [PATCH] do not register unsupported wallet types, because they are proposed in the install wizard --- lib/plugins.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/plugins.py b/lib/plugins.py index d1d1f797a..47cd5f617 100644 --- 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: