Merge pull request #10017 from f321x/fix_qml_wizard_exception
fix: qml: wizard: delete seed_type from wizard_data if not set explicitly
This commit is contained in:
@@ -8,12 +8,16 @@ WizardComponent {
|
||||
valid: wallettypegroup.checkedButton !== null
|
||||
|
||||
function apply() {
|
||||
// apply gets called when the page is rendered and implicitly
|
||||
// sets the first radio button or the last selected one when going back
|
||||
wizard_data['wallet_type'] = wallettypegroup.checkedButton.wallettype
|
||||
delete wizard_data['seed_type']
|
||||
if (wizard_data['wallet_type'] == 'standard')
|
||||
wizard_data['seed_type'] = 'segwit'
|
||||
else if (wizard_data['wallet_type'] == '2fa')
|
||||
wizard_data['seed_type'] = '2fa_segwit'
|
||||
// TODO: multisig
|
||||
else if (wizard_data['wallet_type'] == 'multisig')
|
||||
wizard_data['seed_type'] = 'segwit'
|
||||
}
|
||||
|
||||
ButtonGroup {
|
||||
|
||||
Reference in New Issue
Block a user