1
0

separate load_wallet hook for installwizard

This commit is contained in:
ThomasV
2015-06-11 09:36:19 +02:00
parent 16344b43af
commit 5ffd26402e
3 changed files with 10 additions and 1 deletions

View File

@@ -117,6 +117,10 @@ class Plugin(BasePlugin):
QMessageBox.information(self.window, _('Error'), _("Trezor device not detected.\nContinuing in watching-only mode."), _('OK'))
self.wallet.force_watching_only = True
@hook
def installwizard_load_wallet(self, wallet, window):
self.load_wallet(wallet, window)
@hook
def installwizard_restore(self, wizard, storage):
if storage.get('wallet_type') != 'trezor':