mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-03 12:30:07 +00:00
fix is_available method of btchip plugin
This commit is contained in:
parent
cbeb8abe4a
commit
337a20b815
1 changed files with 5 additions and 6 deletions
|
@ -54,12 +54,11 @@ class Plugin(BasePlugin):
|
|||
return BTCHIP
|
||||
|
||||
def is_available(self):
|
||||
#if self.wallet is None:
|
||||
# return self._is_available
|
||||
#if self.wallet.storage.get('wallet_type') == 'btchip':
|
||||
# return True
|
||||
#return False
|
||||
return self._is_available
|
||||
if self.wallet is None:
|
||||
return self._is_available
|
||||
if self.wallet.storage.get('wallet_type') == 'btchip':
|
||||
return True
|
||||
return False
|
||||
|
||||
def set_enabled(self, enabled):
|
||||
self.wallet.storage.put('use_' + self.name, enabled)
|
||||
|
|
Loading…
Add table
Reference in a new issue