ttrezor: is_available() - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 8a17e1a5a70df7cff4034f747fe26b7a6fb39084 DIR parent 8ca42bbf43dbbc717a562de5dc5d3164f4b29391 HTML Author: ThomasV <thomasv@gitorious> Date: Fri, 22 Aug 2014 11:09:23 +0200 ttrezor: is_available() Diffstat: M plugins/trezor.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) --- DIR diff --git a/plugins/trezor.py b/plugins/trezor.py t@@ -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)