qml: show frozen lightning balance in BalanceDetails only when non-zero
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user