Browse Source
Have these put cosigner data directly in the correct wizard_data leafs instead of relying on wizard accept handlers.master
11 changed files with 155 additions and 125 deletions
@ -1,19 +0,0 @@ |
|||||||
import QtQuick 2.6 |
|
||||||
import QtQuick.Layouts 1.0 |
|
||||||
import QtQuick.Controls 2.1 |
|
||||||
|
|
||||||
import org.electrum 1.0 |
|
||||||
|
|
||||||
import "../controls" |
|
||||||
|
|
||||||
WizardComponent { |
|
||||||
id: root |
|
||||||
|
|
||||||
valid: false |
|
||||||
|
|
||||||
ColumnLayout { |
|
||||||
Label { |
|
||||||
text: qsTr('TODO: Cosigner key entry') |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
@ -1,30 +0,0 @@ |
|||||||
import QtQuick 2.6 |
|
||||||
import QtQuick.Layouts 1.0 |
|
||||||
import QtQuick.Controls 2.1 |
|
||||||
|
|
||||||
import org.electrum 1.0 |
|
||||||
|
|
||||||
import "../controls" |
|
||||||
|
|
||||||
WCHaveSeed { |
|
||||||
id: root |
|
||||||
|
|
||||||
headingtext: qsTr('Cosigner #%1 of %2').arg(cosigner).arg(participants) |
|
||||||
|
|
||||||
property int cosigner: 0 |
|
||||||
property int participants: 0 |
|
||||||
|
|
||||||
function apply() { |
|
||||||
console.log('apply fn called') |
|
||||||
wizard_data['cosigner_seed'] = seed |
|
||||||
wizard_data['cosigner_seed_variant'] = seed_variant |
|
||||||
wizard_data['cosigner_seed_type'] = seed_type |
|
||||||
wizard_data['cosigner_seed_extend'] = seed_extend |
|
||||||
wizard_data['cosigner_seed_extra_words'] = seed_extra_words |
|
||||||
} |
|
||||||
|
|
||||||
Component.onCompleted: { |
|
||||||
participants = wizard_data['multisig_participants'] |
|
||||||
cosigner = wizard_data['multisig_current_cosigner'] |
|
||||||
} |
|
||||||
} |
|
||||||
Loading…
Reference in new issue