1
0

qml: show frozen lightning balance in BalanceDetails only when non-zero

This commit is contained in:
Sander van Grieken
2023-12-28 12:30:37 +01:00
parent 0dae17339d
commit ceb42c2a1b

View File

@@ -117,7 +117,7 @@ Pane {
}
RowLayout {
visible: Daemon.currentWallet.isLightning
visible: Daemon.currentWallet.isLightning && !Daemon.currentWallet.lightningBalanceFrozen.isEmpty
Rectangle {
Layout.leftMargin: constants.paddingLarge
Layout.preferredWidth: constants.iconSizeXSmall
@@ -129,7 +129,7 @@ Pane {
}
}
FormattedAmount {
visible: Daemon.currentWallet.isLightning
visible: Daemon.currentWallet.isLightning && !Daemon.currentWallet.lightningBalanceFrozen.isEmpty
amount: Daemon.currentWallet.lightningBalanceFrozen
}