1
0

properly count open channels, add open channel to hamburger menu

This commit is contained in:
Sander van Grieken
2022-06-30 21:07:08 +02:00
parent b2fafcb428
commit 456b6048ea
2 changed files with 19 additions and 1 deletions

View File

@@ -25,6 +25,15 @@ Pane {
icon.source: '../../icons/status_waiting.png'
}
}
MenuSeparator {}
MenuItem {
icon.color: 'transparent'
action: Action {
text: qsTr('Open Channel');
onTriggered: app.stack.push(Qt.resolvedUrl('OpenChannel.qml'))
icon.source: '../../icons/lightning.png'
}
}
}
ColumnLayout {
@@ -39,7 +48,7 @@ Pane {
Label {
Layout.columnSpan: 2
text: qsTr('You have %1 open channels').arg(listview.count)
text: qsTr('You have %1 open channels').arg(Daemon.currentWallet.channelModel.numOpenChannels)
color: Material.accentColor
}