Skip to content

Commit 6e42abc

Browse files
committed
qml: Add property to hide NetworkIndicator on BlockClock page
The network indicator is redundant on the block clock page when in Desktop wallet mode.
1 parent 4b79ac2 commit 6e42abc

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/qml/components/BlockClock.qml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Item {
1515
id: root
1616
property real parentWidth: 600
1717
property real parentHeight: 600
18+
property bool showNetworkIndicator: true
1819

1920
width: dial.width
2021
height: dial.height + networkIndicator.height + networkIndicator.anchors.topMargin
@@ -146,6 +147,7 @@ Item {
146147

147148
NetworkIndicator {
148149
id: networkIndicator
150+
show: root.showNetworkIndicator
149151
anchors.top: dial.bottom
150152
anchors.topMargin: networkIndicator.visible ? 30 : 0
151153
anchors.horizontalCenter: root.horizontalCenter

src/qml/components/NetworkIndicator.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ import org.bitcoincore.qt 1.0
1212
Button {
1313
id: root
1414
property color bgColor
15+
property bool show: true
1516
property int textSize: 15
1617
topPadding: 2
1718
bottomPadding: 2
1819
leftPadding: 7
1920
rightPadding: 7
20-
state: chainModel.currentNetworkName
21+
state: show ? chainModel.currentNetworkName : "MAIN"
2122
contentItem: CoreText {
2223
text: root.text
2324
font.pixelSize: root.textSize

src/qml/pages/wallet/DesktopWallets.qml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ Page {
111111
parentWidth: parent.width - 40
112112
parentHeight: parent.height
113113
anchors.centerIn: parent
114+
showNetworkIndicator: false
114115
}
115116
}
116117
NodeSettings {

0 commit comments

Comments
 (0)