1
0

hw wallets: generalise 'minimum_library' for those that provide a version number

This commit is contained in:
SomberNight
2018-08-23 18:31:14 +02:00
parent 9279f30363
commit 91c369e392
7 changed files with 71 additions and 50 deletions

View File

@@ -189,11 +189,7 @@ class QtPluginBase(object):
if not isinstance(keystore, self.keystore_class):
continue
if not self.libraries_available:
if hasattr(self, 'libraries_available_message'):
message = self.libraries_available_message + '\n'
else:
message = _("Cannot find python library for") + " '%s'.\n" % self.name
message += _("Make sure you install it with python3")
message = keystore.plugin.get_library_not_available_message()
window.show_error(message)
return
tooltip = self.device + '\n' + (keystore.label or 'unnamed')