1
0

qml: better fix

This commit is contained in:
Sander van Grieken
2023-02-07 00:21:21 +01:00
parent b2d4a2a81f
commit b9b0ada15d
2 changed files with 3 additions and 3 deletions

View File

@@ -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 {

View File

@@ -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: