trezor: is_available()

This commit is contained in:
ThomasV 2014-08-22 11:09:23 +02:00
parent 8ca42bbf43
commit 8a17e1a5a7
1 changed files with 5 additions and 1 deletions

View File

@ -45,7 +45,11 @@ class Plugin(BasePlugin):
return TREZOR
def is_available(self):
return self._is_available
if self.wallet is None:
return self._is_available
if self.wallet.storage.get('wallet_type') == 'trezor':
return True
return False
def set_enabled(self, enabled):
self.wallet.storage.put('use_' + self.name, enabled)