1
0

Get ledger wallet working, for restore at least

Fixes #1592
This commit is contained in:
Neil Booth
2016-01-01 18:38:43 +09:00
parent d150a6d29c
commit 2f58d419dc
4 changed files with 51 additions and 25 deletions

View File

@@ -12,7 +12,6 @@ class Plugin(LedgerPlugin):
def load_wallet(self, wallet, window):
if type(wallet) != BTChipWallet:
return
wallet.plugin = self
if self.handler is None:
self.handler = BTChipQTHandler(window)
if self.btchip_is_connected(wallet):
@@ -23,6 +22,9 @@ class Plugin(LedgerPlugin):
window.show_error(_("Ledger device not detected.\nContinuing in watching-only mode."))
wallet.force_watching_only = True
def on_create_wallet(self, wallet, wizard):
self.handler = BTChipQTHandler(wizard)
wallet.create_main_account(None)
class BTChipQTHandler: