Merge pull request #2126 from kacperzuk/seed_dialog_preserve_options
Preserve checkboxes state in seed_options
This commit is contained in:
commit
f59e92f947
|
@ -58,6 +58,7 @@ class SeedLayout(QVBoxLayout):
|
||||||
vbox = QVBoxLayout(dialog)
|
vbox = QVBoxLayout(dialog)
|
||||||
if 'ext' in self.options:
|
if 'ext' in self.options:
|
||||||
cb_ext = QCheckBox(_('Extend this seed with custom words'))
|
cb_ext = QCheckBox(_('Extend this seed with custom words'))
|
||||||
|
cb_ext.setChecked(self.is_ext)
|
||||||
vbox.addWidget(cb_ext)
|
vbox.addWidget(cb_ext)
|
||||||
if 'bip39' in self.options:
|
if 'bip39' in self.options:
|
||||||
def f(b):
|
def f(b):
|
||||||
|
@ -79,6 +80,7 @@ class SeedLayout(QVBoxLayout):
|
||||||
self.on_edit()
|
self.on_edit()
|
||||||
cb_bip39 = QCheckBox(_('BIP39 seed'))
|
cb_bip39 = QCheckBox(_('BIP39 seed'))
|
||||||
cb_bip39.toggled.connect(f)
|
cb_bip39.toggled.connect(f)
|
||||||
|
cb_bip39.setChecked(self.is_bip39)
|
||||||
vbox.addWidget(cb_bip39)
|
vbox.addWidget(cb_bip39)
|
||||||
vbox.addLayout(Buttons(OkButton(dialog)))
|
vbox.addLayout(Buttons(OkButton(dialog)))
|
||||||
if not dialog.exec_():
|
if not dialog.exec_():
|
||||||
|
|
Loading…
Reference in New Issue