Browse Source

fix wizard line_dialog

283
ThomasV 9 years ago
parent
commit
63a5e8f99b
  1. 2
      gui/qt/installwizard.py
  2. 4
      lib/base_wizard.py

2
gui/qt/installwizard.py

@ -378,7 +378,7 @@ class InstallWizard(QDialog, MessageBoxMixin, BaseWizard):
return clayout.selected_index() return clayout.selected_index()
@wizard_dialog @wizard_dialog
def line_dialog(self, run_next, title, message, warning, default, test): def line_dialog(self, run_next, title, message, default, test, warning=''):
vbox = QVBoxLayout() vbox = QVBoxLayout()
vbox.addWidget(WWLabel(message)) vbox.addWidget(WWLabel(message))
line = QLineEdit() line = QLineEdit()

4
lib/base_wizard.py

@ -341,7 +341,7 @@ class BaseWizard(object):
title = _('Passphrase') title = _('Passphrase')
message = '\n'.join([ message = '\n'.join([
_('You may extend your seed with a passphrase.'), _('You may extend your seed with a passphrase.'),
_('This allows you to derive several wallets from the same seed.'), _('The passphrase must be saved together with your seed.'),
]) ])
warning = '\n'.join([ warning = '\n'.join([
_('Note that this is NOT your encryption password.'), _('Note that this is NOT your encryption password.'),
@ -359,7 +359,7 @@ class BaseWizard(object):
if passphrase: if passphrase:
title = _('Confirm Passphrase') title = _('Confirm Passphrase')
message = '\n'.join([ message = '\n'.join([
_('Your passphrase must be saved with your seed.'), _('Your passphrase must be saved together with your seed.'),
_('Please type it here.'), _('Please type it here.'),
]) ])
self.line_dialog(run_next=f, title=title, message=message, default='', test=lambda x: x==passphrase) self.line_dialog(run_next=f, title=title, message=message, default='', test=lambda x: x==passphrase)

Loading…
Cancel
Save