main: hint at device state when a hardware wallet fails to open

This commit is contained in:
reservedbytes committed 2026-07-29 11:39:04 +00:00
1 parent 56483fe161
commit f43b7e59a5
1 file changed
+7 -1
+7 -1
View File
@@ -538,7 +538,13 @@ ApplicationWindow {
default:
// opening with password but password doesn't match
console.error("Error opening wallet with password: ", wallet.errorString);
passwordDialog.showError(qsTr("Couldn't open wallet: ") + wallet.errorString);
var errorMessage = qsTr("Couldn't open wallet: ") + wallet.errorString;
if (wallet.isLedger()) {
errorMessage += "\n" + qsTr("Make sure your Ledger is connected and unlocked, and the Monero app is open.");
} else if (wallet.isTrezor()) {
errorMessage += "\n" + qsTr("Make sure your Trezor is connected and unlocked.");
}
passwordDialog.showError(errorMessage);
console.log("closing wallet async : " + wallet.address)
closeWallet();
return;