Browse Source

qml: properly return when current wallet is selected from wallets list

master
Sander van Grieken 2 years ago
parent
commit
b8b5dab68a
  1. 5
      electrum/gui/qml/components/Wallets.qml

5
electrum/gui/qml/components/Wallets.qml

@ -58,12 +58,13 @@ Pane {
height: row.height height: row.height
onClicked: { onClicked: {
if (!Daemon.currentWallet || Daemon.currentWallet.name != model.name) if (!Daemon.currentWallet || Daemon.currentWallet.name != model.name) {
if (!Daemon.loading) // wallet load in progress if (!Daemon.loading) // wallet load in progress
Daemon.loadWallet(model.path) Daemon.loadWallet(model.path)
else } else {
app.stack.pop() app.stack.pop()
} }
}
RowLayout { RowLayout {
id: row id: row

Loading…
Cancel
Save