expose more trampoline boilerplate
allow delegation of make_tx and accept/send
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user