@@ -24,19 +24,16 @@ WizardComponent {
2424 property bool _seedValid
2525
2626 function apply () {
27- var seed_extend = extendcb .checked && _canPassphrase
2827 if (cosigner) {
2928 wizard_data[' multisig_cosigner_data' ][cosigner .toString ()][' seed' ] = seedtext .text
3029 wizard_data[' multisig_cosigner_data' ][cosigner .toString ()][' seed_variant' ] = seed_variant_cb .currentValue
3130 wizard_data[' multisig_cosigner_data' ][cosigner .toString ()][' seed_type' ] = _seedType
32- wizard_data[' multisig_cosigner_data' ][cosigner .toString ()][' seed_extend' ] = seed_extend
33- wizard_data[' multisig_cosigner_data' ][cosigner .toString ()][' seed_extra_words' ] = seed_extend ? customwordstext .text : ' '
31+ wizard_data[' multisig_cosigner_data' ][cosigner .toString ()][' seed_extend' ] = _canPassphrase
3432 } else {
3533 wizard_data[' seed' ] = seedtext .text
3634 wizard_data[' seed_variant' ] = seed_variant_cb .currentValue
3735 wizard_data[' seed_type' ] = _seedType
38- wizard_data[' seed_extend' ] = seed_extend
39- wizard_data[' seed_extra_words' ] = seed_extend ? customwordstext .text : ' '
36+ wizard_data[' seed_extend' ] = _canPassphrase
4037
4138 // determine script type from electrum seed type
4239 // (used to limit script type options for bip39 cosigners)
@@ -52,22 +49,20 @@ WizardComponent {
5249 function setSeedTypeHelpText () {
5350 var t = {
5451 ' electrum' : [
52+ // not shown as electrum is the default seed type anyways and the name is self-explanatory
5553 qsTr (' Electrum seeds are the default seed type.' ),
5654 qsTr (' If you are restoring from a seed previously created by Electrum, choose this option' )
5755 ].join (' ' ),
5856 ' bip39' : [
5957 qsTr (' BIP39 seeds can be imported in Electrum, so that users can access funds locked in other wallets.' ),
60- ' <br/><br/>' ,
61- qsTr (' However, we do not generate BIP39 seeds, because they do not meet our safety standard.' ),
62- qsTr (' BIP39 seeds do not include a version number, which compromises compatibility with future software.' )
58+ qsTr (' BIP39 seeds do not include a version number, which compromises compatibility with future software.' ),
6359 ].join (' ' ),
6460 ' slip39' : [
6561 qsTr (' SLIP39 seeds can be imported in Electrum, so that users can access funds locked in other wallets.' ),
66- ' <br/><br/>' ,
67- qsTr (' However, we do not generate SLIP39 seeds.' )
6862 ].join (' ' )
6963 }
7064 infotext .text = t[seed_variant_cb .currentValue ]
65+ infotext .visible = ! cosigner && ! is2fa && seed_variant_cb .currentValue != ' electrum'
7166 }
7267
7368 function checkValid () {
@@ -100,11 +95,6 @@ WizardComponent {
10095 }
10196 }
10297
103- if (_canPassphrase && extendcb .checked && customwordstext .text == ' ' ) {
104- valid = false
105- return
106- }
107-
10898 valid = _seedValid
10999 }
110100
@@ -196,7 +186,6 @@ WizardComponent {
196186
197187 InfoTextArea {
198188 id: infotext
199- visible: ! cosigner && ! is2fa
200189 Layout .fillWidth : true
201190 Layout .columnSpan : 2
202191 Layout .bottomMargin : constants .paddingLarge
@@ -221,26 +210,6 @@ WizardComponent {
221210 startValidationTimer ()
222211 }
223212 }
224-
225- ElCheckBox {
226- id: extendcb
227- Layout .columnSpan : 2
228- Layout .fillWidth : true
229- visible: _canPassphrase
230- text: qsTr (' Extend seed with custom words' )
231- onCheckedChanged: startValidationTimer ()
232- }
233-
234- TextField {
235- id: customwordstext
236- visible: extendcb .checked && extendcb .visible
237- Layout .fillWidth : true
238- Layout .columnSpan : 2
239- placeholderText: qsTr (' Enter your custom word(s)' )
240- inputMethodHints: Qt .ImhNoPredictiveText
241-
242- onTextChanged: startValidationTimer ()
243- }
244213 }
245214 }
246215
0 commit comments