1
0

qml: BalanceSummary to treat server_status=="connecting" same as DC-ed

This commit is contained in:
SomberNight
2023-03-30 00:57:20 +00:00
parent 3149ccf729
commit 81761c2ef1

View File

@@ -42,7 +42,7 @@ Item {
GridLayout {
id: balanceLayout
columns: 3
opacity: Daemon.currentWallet.synchronizing || Network.server_status == 'disconnected' ? 0 : 1
opacity: Daemon.currentWallet.synchronizing || Network.server_status != 'connected' ? 0 : 1
Label {
font.pixelSize: constants.fontSizeXLarge
@@ -140,7 +140,7 @@ Item {
}
Label {
opacity: Daemon.currentWallet.synchronizing && Network.server_status != 'disconnected' ? 1 : 0
opacity: Daemon.currentWallet.synchronizing && Network.server_status == 'connected' ? 1 : 0
anchors.centerIn: balancePane
text: Daemon.currentWallet.synchronizingProgress
color: Material.accentColor
@@ -148,7 +148,7 @@ Item {
}
Label {
opacity: Network.server_status == 'disconnected' ? 1 : 0
opacity: Network.server_status != 'connected' ? 1 : 0
anchors.centerIn: balancePane
text: qsTr('Disconnected')
color: Material.accentColor