qml: do not block access to BalanceSummary if we are not connected. Display warning instead
This commit is contained in:
@@ -35,6 +35,16 @@ Pane {
|
|||||||
width: parent.width
|
width: parent.width
|
||||||
spacing: constants.paddingLarge
|
spacing: constants.paddingLarge
|
||||||
|
|
||||||
|
InfoTextArea {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.bottomMargin: constants.paddingLarge
|
||||||
|
visible: Daemon.currentWallet.synchronizing || Network.server_status != 'connected'
|
||||||
|
text: Daemon.currentWallet.synchronizing
|
||||||
|
? qsTr('Your wallet is not synchronized. The displayed balance may be inaccurate.')
|
||||||
|
: qsTr('Your wallet is not connected to an Electrum server. The displayed balance may be outdated.')
|
||||||
|
iconStyle: InfoTextArea.IconStyle.Warn
|
||||||
|
}
|
||||||
|
|
||||||
Heading {
|
Heading {
|
||||||
text: qsTr('Wallet balance')
|
text: qsTr('Wallet balance')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -147,7 +147,6 @@ Item {
|
|||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if(Daemon.currentWallet.synchronizing || Network.server_status != 'connected') return
|
|
||||||
app.stack.push(Qt.resolvedUrl('../BalanceDetails.qml'))
|
app.stack.push(Qt.resolvedUrl('../BalanceDetails.qml'))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user