fix wizard
This commit is contained in:
@@ -373,21 +373,22 @@ class InstallWizard(QDialog):
|
|||||||
|
|
||||||
if action == 'new':
|
if action == 'new':
|
||||||
action, wallet_type = self.restore_or_create()
|
action, wallet_type = self.restore_or_create()
|
||||||
|
if action == 'create':
|
||||||
|
self.storage.put('wallet_type', wallet_type)
|
||||||
|
|
||||||
if action is None:
|
if action is None:
|
||||||
return
|
return
|
||||||
|
|
||||||
if action == 'restore':
|
if action == 'restore':
|
||||||
wallet = self.restore(wallet_type)
|
wallet = self.restore(wallet_type)
|
||||||
if not wallet:
|
if not wallet:
|
||||||
return
|
return
|
||||||
action = None
|
action = None
|
||||||
elif action == 'create':
|
else:
|
||||||
self.storage.put('wallet_type', wallet_type)
|
|
||||||
wallet = Wallet(self.storage)
|
wallet = Wallet(self.storage)
|
||||||
action = wallet.get_action()
|
action = wallet.get_action()
|
||||||
# fixme: password is only needed for multiple accounts
|
# fixme: password is only needed for multiple accounts
|
||||||
password = None
|
password = None
|
||||||
else:
|
|
||||||
raise BaseException('unknown action')
|
|
||||||
|
|
||||||
while action is not None:
|
while action is not None:
|
||||||
util.print_error("installwizard:", wallet, action)
|
util.print_error("installwizard:", wallet, action)
|
||||||
|
|||||||
Reference in New Issue
Block a user