From b8b5dab68a41ef123eedf55a05c9fe42a27e3e4e Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Tue, 26 Sep 2023 12:48:25 +0200 Subject: [PATCH] qml: properly return when current wallet is selected from wallets list --- electrum/gui/qml/components/Wallets.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/electrum/gui/qml/components/Wallets.qml b/electrum/gui/qml/components/Wallets.qml index 7d911a854..b8dcf5f18 100644 --- a/electrum/gui/qml/components/Wallets.qml +++ b/electrum/gui/qml/components/Wallets.qml @@ -58,11 +58,12 @@ Pane { height: row.height onClicked: { - if (!Daemon.currentWallet || Daemon.currentWallet.name != model.name) + if (!Daemon.currentWallet || Daemon.currentWallet.name != model.name) { if (!Daemon.loading) // wallet load in progress Daemon.loadWallet(model.path) - else + } else { app.stack.pop() + } } RowLayout {