1
mirror of https://github.com/monero-project/monero-gui synced 2024-11-15 15:16:57 +01:00

Merge pull request #3802

98f8f19 SettingsWallet: improve and translate trusted remote node error message (rating89us)
This commit is contained in:
luigi1111 2022-01-01 12:53:32 -05:00
commit f44fcb4459
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

@ -101,7 +101,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();