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