1
0

qml: show disconnected state in BalanceSummary

This commit is contained in:
Sander van Grieken
2023-03-16 12:19:18 +01:00
parent 5b8fdacac9
commit 64dde8bc0b

View File

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