From 11614f035da9e2b1d837bc367ec9b85e17315685 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Thu, 30 May 2024 16:17:21 +0000 Subject: [PATCH] qml: "wallet_else_pin" auth should only use the wallet pw if is unified related https://github.com/spesmilo/electrum/pull/9074 --- electrum/gui/qml/components/main.qml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/electrum/gui/qml/components/main.qml b/electrum/gui/qml/components/main.qml index b229646c9..daade9c63 100644 --- a/electrum/gui/qml/components/main.qml +++ b/electrum/gui/qml/components/main.qml @@ -631,11 +631,12 @@ ApplicationWindow console.log('auth using method ' + method) if (method == 'wallet_else_pin') { - // if no wallet loaded, delegate to pin auth, else use wallet password auth - if (!Daemon.currentWallet) { - method = 'pin' - } else { + // if there is a loaded wallet and all wallets use the same password, use that + // else delegate to pin auth + if (Daemon.currentWallet && Daemon.singlePasswordEnabled) { method = 'wallet' + } else { + method = 'pin' } }