qml: show frozen lightning balance in BalanceDetails only when non-zero
This commit is contained in:
@@ -117,7 +117,7 @@ Pane {
|
|||||||
}
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
visible: Daemon.currentWallet.isLightning
|
visible: Daemon.currentWallet.isLightning && !Daemon.currentWallet.lightningBalanceFrozen.isEmpty
|
||||||
Rectangle {
|
Rectangle {
|
||||||
Layout.leftMargin: constants.paddingLarge
|
Layout.leftMargin: constants.paddingLarge
|
||||||
Layout.preferredWidth: constants.iconSizeXSmall
|
Layout.preferredWidth: constants.iconSizeXSmall
|
||||||
@@ -129,7 +129,7 @@ Pane {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
FormattedAmount {
|
FormattedAmount {
|
||||||
visible: Daemon.currentWallet.isLightning
|
visible: Daemon.currentWallet.isLightning && !Daemon.currentWallet.lightningBalanceFrozen.isEmpty
|
||||||
amount: Daemon.currentWallet.lightningBalanceFrozen
|
amount: Daemon.currentWallet.lightningBalanceFrozen
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user