Browse Source

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

master
Sander van Grieken 3 years ago
parent
commit
38472c895c
  1. 2
      electrum/gui/qml/components/NetworkOverview.qml
  2. 8
      electrum/gui/qml/components/WalletMainView.qml
  3. 17
      electrum/gui/qml/components/main.qml

2
electrum/gui/qml/components/NetworkOverview.qml

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

8
electrum/gui/qml/components/WalletMainView.qml

@ -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 {

17
electrum/gui/qml/components/main.qml

@ -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'

Loading…
Cancel
Save