Browse Source

updates for kivy wizard

283
ThomasV 8 years ago
parent
commit
2ae15c00e6
  1. 3
      gui/kivy/main_window.py
  2. 2
      gui/kivy/uix/dialogs/installwizard.py

3
gui/kivy/main_window.py

@ -430,7 +430,8 @@ class ElectrumWindow(App):
self.on_resume()
else:
Logger.debug('Electrum: Wallet not found. Launching install wizard')
wizard = Factory.InstallWizard(self.electrum_config, path)
storage = WalletStorage(path)
wizard = Factory.InstallWizard(self.electrum_config, storage)
wizard.bind(on_wizard_complete=self.on_wizard_complete)
action = wizard.storage.get_action()
wizard.run(action)

2
gui/kivy/uix/dialogs/installwizard.py

@ -811,7 +811,7 @@ class InstallWizard(BaseWizard, Widget):
def confirm_password(self, pin, run_next):
def callback(conf):
if conf == pin:
run_next(pin)
run_next(pin, False)
else:
self.show_error(_('PIN mismatch'))
self.run('request_password', run_next)

Loading…
Cancel
Save