qml: NetworkOverview removed from menu, now triggered by onchain and lightning status icon
This commit is contained in:
@@ -7,6 +7,8 @@ import "controls"
|
|||||||
|
|
||||||
Pane {
|
Pane {
|
||||||
id: root
|
id: root
|
||||||
|
objectName: 'NetworkOverview'
|
||||||
|
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
|||||||
@@ -66,14 +66,6 @@ Item {
|
|||||||
icon.source: '../../icons/tab_addresses.png'
|
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 {
|
MenuItem {
|
||||||
icon.color: 'transparent'
|
icon.color: 'transparent'
|
||||||
action: Action {
|
action: Action {
|
||||||
|
|||||||
@@ -103,9 +103,24 @@ ApplicationWindow
|
|||||||
|
|
||||||
LightningNetworkStatusIndicator {
|
LightningNetworkStatusIndicator {
|
||||||
visible: Daemon.currentWallet.isLightning
|
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 {
|
Rectangle {
|
||||||
color: 'transparent'
|
color: 'transparent'
|
||||||
|
|||||||
Reference in New Issue
Block a user