fix plugin restore: wallet_type

This commit is contained in:
ThomasV 2014-08-26 17:58:17 +02:00
parent b24f67fe9d
commit c130ff6715
2 changed files with 3 additions and 0 deletions

View File

@ -538,6 +538,7 @@ class InstallWizard(QDialog):
wallet.create_main_account(password)
else:
self.storage.put('wallet_type', t)
wallet = run_hook('installwizard_restore', self, self.storage)
if not wallet:
return

View File

@ -81,6 +81,8 @@ class Plugin(BasePlugin):
wallet_types.append(('trezor', _("Trezor wallet"), TrezorWallet))
def installwizard_restore(self, wizard, storage):
if storage.get('wallet_type') != 'trezor':
return
wallet = TrezorWallet(storage)
try:
wallet.create_main_account(None)