From f43b7e59a5b46826b8739cec5fba0cb8d9c6ba61 Mon Sep 17 00:00:00 2001 From: reservedbytes <94451745+reservedbytes@users.noreply.github.com> Date: Wed, 29 Jul 2026 11:39:04 +0000 Subject: [PATCH] main: hint at device state when a hardware wallet fails to open --- main.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/main.qml b/main.qml index 0345f5d29f..ea473deafb 100644 --- a/main.qml +++ b/main.qml @@ -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;