mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 08:51:32 +00:00
fix wizard line_dialog
This commit is contained in:
parent
b2e9362163
commit
63a5e8f99b
2 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||||
|
|
|
@ -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…
Add table
Reference in a new issue