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

This commit is contained in:
ThomasV 2016-06-25 19:32:43 +02:00
parent 029c272d57
commit 8ae1dc4d09
1 changed files with 2 additions and 5 deletions

View File

@ -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: