1
0

qml: do not block access to BalanceSummary if we are not connected. Display warning instead

This commit is contained in:
ThomasV
2023-04-03 17:10:52 +02:00
parent 8bb2464acd
commit 157954d4ff
2 changed files with 10 additions and 1 deletions

View File

@@ -35,6 +35,16 @@ Pane {
width: parent.width
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 {
text: qsTr('Wallet balance')
}

View File

@@ -147,7 +147,6 @@ Item {
MouseArea {
anchors.fill: parent
onClicked: {
if(Daemon.currentWallet.synchronizing || Network.server_status != 'connected') return
app.stack.push(Qt.resolvedUrl('../BalanceDetails.qml'))
}
}