qml: better fix
This commit is contained in:
@@ -143,12 +143,12 @@ Pane {
|
|||||||
Label {
|
Label {
|
||||||
text: qsTr('Mempool depth')
|
text: qsTr('Mempool depth')
|
||||||
color: Material.accentColor
|
color: Material.accentColor
|
||||||
visible: !txdetails.isMined && !txdetails.canBroadcast
|
visible: txdetails.mempoolDepth
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: txdetails.mempoolDepth
|
text: txdetails.mempoolDepth
|
||||||
visible: !txdetails.isMined && !txdetails.canBroadcast
|
visible: txdetails.mempoolDepth
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
|
|||||||
@@ -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
|
self._is_mined = False if not txinfo.tx_mined_status else txinfo.tx_mined_status.height > 0
|
||||||
if self._is_mined:
|
if self._is_mined:
|
||||||
self.update_mined_status(txinfo.tx_mined_status)
|
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)
|
self._mempool_depth = self._wallet.wallet.config.depth_tooltip(txinfo.mempool_depth_bytes)
|
||||||
|
|
||||||
if self._wallet.wallet.lnworker:
|
if self._wallet.wallet.lnworker:
|
||||||
|
|||||||
Reference in New Issue
Block a user