SettingsWallet: improve and translate trusted remote node error message

This commit is contained in:
rating89us 2021-12-13 15:30:24 +01:00 committed by GitHub
parent bddb9b0050
commit 98f8f194cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -100,7 +100,11 @@ Rectangle {
if (!currentWallet.rescanSpent()) {
console.error("Error: ", currentWallet.errorString);
informationPopup.title = qsTr("Error") + translationManager.emptyString;
informationPopup.text = qsTr("Error: ") + currentWallet.errorString
if (currentWallet.errorString == "Rescan spent can only be used with a trusted daemon") {
informationPopup.text = qsTr("Error: ") + qsTr("Rescan spent can only be used with a trusted remote node. If you trust the current node you are connected to (%1), you can mark it as trusted in Settings > Node page.").arg(remoteNodesModel.currentRemoteNode().address) + translationManager.emptyString;
} else {
informationPopup.text = qsTr("Error: ") + currentWallet.errorString;
}
informationPopup.icon = StandardIcon.Critical
informationPopup.onCloseCallback = null
informationPopup.open();