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: