From 25173b465fddfd931d995c280e3dd675caa7195b Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Fri, 24 Jan 2025 15:32:16 +0100 Subject: [PATCH] qml: network: show chain tips if > 1 --- .../gui/qml/components/NetworkOverview.qml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/electrum/gui/qml/components/NetworkOverview.qml b/electrum/gui/qml/components/NetworkOverview.qml index b5009dae9..187dd5446 100644 --- a/electrum/gui/qml/components/NetworkOverview.qml +++ b/electrum/gui/qml/components/NetworkOverview.qml @@ -75,6 +75,25 @@ Pane { text: Network.serverHeight + " " + (Network.serverHeight < Network.height ? "(lagging)" : "(syncing...)") visible: Network.serverHeight != 0 && Network.serverHeight != Network.height } + Label { + text: qsTr('Chain tips:'); + color: Material.accentColor + visible: opacity > 0 + opacity: Network.chaintips > 1 ? 1 : 0 + Behavior on opacity { NumberAnimation { duration: 1000 } } + } + RowLayout { + visible: opacity > 0 + opacity: Network.chaintips > 1 ? 1 : 0 + Behavior on opacity { NumberAnimation { duration: 1000 } } + OnchainNetworkStatusIndicator { + sourceSize.width: constants.iconSizeSmall + sourceSize.height: constants.iconSizeSmall + } + Label { + text: Network.chaintips + } + } Heading { Layout.columnSpan: 2 text: qsTr('Mempool fees')