qml: properly return when current wallet is selected from wallets list
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user