Browse Source

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

master
ThomasV 3 years ago
parent
commit
157954d4ff
  1. 10
      electrum/gui/qml/components/BalanceDetails.qml
  2. 1
      electrum/gui/qml/components/controls/BalanceSummary.qml

10
electrum/gui/qml/components/BalanceDetails.qml

@ -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')
}

1
electrum/gui/qml/components/controls/BalanceSummary.qml

@ -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'))
}
}

Loading…
Cancel
Save