From 847c8d4941931a5e0b8406457c79a752f7b02577 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Fri, 31 Mar 2023 16:37:49 +0200 Subject: [PATCH] balance details: use onClicked event. Early return if balance is not available --- electrum/gui/qml/components/controls/BalanceSummary.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electrum/gui/qml/components/controls/BalanceSummary.qml b/electrum/gui/qml/components/controls/BalanceSummary.qml index cb0d78b2d..cef653dc6 100644 --- a/electrum/gui/qml/components/controls/BalanceSummary.qml +++ b/electrum/gui/qml/components/controls/BalanceSummary.qml @@ -146,7 +146,8 @@ Item { MouseArea { anchors.fill: parent - onPressAndHold: { + onClicked: { + if(Daemon.currentWallet.synchronizing || Network.server_status != 'connected') return app.stack.push(Qt.resolvedUrl('../BalanceDetails.qml')) } }