1
0

expose more trampoline boilerplate

allow delegation of make_tx and accept/send
This commit is contained in:
Sander van Grieken
2022-06-01 13:10:58 +02:00
parent 8807a428ed
commit 81b1f774e2
5 changed files with 81 additions and 17 deletions

View File

@@ -23,8 +23,10 @@ Pane {
text: qsTr('Node')
}
// gossip
TextArea {
id: node
visible: Config.useGossip
Layout.columnSpan: 2
Layout.fillWidth: true
font.family: FixedFont
@@ -37,6 +39,7 @@ Pane {
}
RowLayout {
visible: Config.useGossip
spacing: 0
ToolButton {
icon.source: '../../icons/paste.png'
@@ -62,6 +65,18 @@ Pane {
}
}
// trampoline
ComboBox {
id: tnode
visible: !Config.useGossip
Layout.columnSpan: 3
Layout.fillWidth: true
model: channelopener.trampolineNodeNames
onCurrentValueChanged: {
channelopener.nodeid = tnode.currentValue
}
}
Label {
text: qsTr('Amount')
}
@@ -85,9 +100,7 @@ Pane {
id: is_max
text: qsTr('Max')
onCheckedChanged: {
if (checked) {
channelopener.amount = MAX
}
channelopener.amount = checked ? MAX : Config.unitsToSats(amount.text)
}
}
}