qml: show disconnected state in BalanceSummary
This commit is contained in:
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user