1
0

qml: NetworkOverview removed from menu, now triggered by onchain and lightning status icon

This commit is contained in:
Sander van Grieken
2023-01-17 16:52:50 +01:00
parent 5977386697
commit 38472c895c
3 changed files with 18 additions and 9 deletions

View File

@@ -7,6 +7,8 @@ import "controls"
Pane {
id: root
objectName: 'NetworkOverview'
padding: 0
ColumnLayout {

View File

@@ -66,14 +66,6 @@ Item {
icon.source: '../../icons/tab_addresses.png'
}
}
MenuItem {
icon.color: 'transparent'
action: Action {
text: qsTr('Network');
onTriggered: menu.openPage(Qt.resolvedUrl('NetworkOverview.qml'))
icon.source: '../../icons/network.png'
}
}
MenuItem {
icon.color: 'transparent'
action: Action {

View File

@@ -103,9 +103,24 @@ ApplicationWindow
LightningNetworkStatusIndicator {
visible: Daemon.currentWallet.isLightning
MouseArea {
anchors.fill: parent
onClicked: {
if (stack.currentItem.objectName != 'NetworkOverview')
stack.push(Qt.resolvedUrl('NetworkOverview.qml'))
}
}
}
OnchainNetworkStatusIndicator { }
OnchainNetworkStatusIndicator {
MouseArea {
anchors.fill: parent
onClicked: {
if (stack.currentItem.objectName != 'NetworkOverview')
stack.push(Qt.resolvedUrl('NetworkOverview.qml'))
}
}
}
Rectangle {
color: 'transparent'