1
0

close_wallet

This commit is contained in:
ThomasV
2014-09-12 19:58:59 +02:00
parent 45a55e258f
commit 5b84cbe9fb
3 changed files with 12 additions and 6 deletions

View File

@@ -79,6 +79,11 @@ class Plugin(BasePlugin):
def enable(self):
return BasePlugin.enable(self)
@hook
def close_wallet(self):
print_error("trezor: clear session")
self.wallet.client.clear_session()
@hook
def load_wallet(self, wallet):
self.wallet = wallet