From b9b0ada15defae7c8c290d1889cb711e6ecf1978 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Tue, 7 Feb 2023 00:21:21 +0100 Subject: [PATCH] qml: better fix --- electrum/gui/qml/components/TxDetails.qml | 4 ++-- electrum/gui/qml/qetxdetails.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/electrum/gui/qml/components/TxDetails.qml b/electrum/gui/qml/components/TxDetails.qml index fd09bd724..15edf83f1 100644 --- a/electrum/gui/qml/components/TxDetails.qml +++ b/electrum/gui/qml/components/TxDetails.qml @@ -143,12 +143,12 @@ Pane { Label { text: qsTr('Mempool depth') color: Material.accentColor - visible: !txdetails.isMined && !txdetails.canBroadcast + visible: txdetails.mempoolDepth } Label { text: txdetails.mempoolDepth - visible: !txdetails.isMined && !txdetails.canBroadcast + visible: txdetails.mempoolDepth } Label { diff --git a/electrum/gui/qml/qetxdetails.py b/electrum/gui/qml/qetxdetails.py index 3a0d125c7..7457b6a01 100644 --- a/electrum/gui/qml/qetxdetails.py +++ b/electrum/gui/qml/qetxdetails.py @@ -255,7 +255,7 @@ class QETxDetails(QObject, QtEventListener): self._is_mined = False if not txinfo.tx_mined_status else txinfo.tx_mined_status.height > 0 if self._is_mined: self.update_mined_status(txinfo.tx_mined_status) - else: + elif txinfo.tx_mined_status.height == 0: self._mempool_depth = self._wallet.wallet.config.depth_tooltip(txinfo.mempool_depth_bytes) if self._wallet.wallet.lnworker: