1
0

qml: remove redundant WalletDB, closes #8628

This commit is contained in:
Sander van Grieken
2023-10-06 12:06:00 +02:00
parent e4f9cfb1cc
commit cbcafe8960
2 changed files with 20 additions and 26 deletions

View File

@@ -496,12 +496,19 @@ ApplicationWindow
}
}
property var _opendialog: undefined
Connections {
target: Daemon
function onWalletRequiresPassword(name, path) {
console.log('wallet requires password')
var dialog = openWalletDialog.createObject(app, { path: path, name: name })
dialog.open()
if (_opendialog == undefined) {
_opendialog = openWalletDialog.createObject(app, { path: path, name: name })
_opendialog.closed.connect(function() {
_opendialog = undefined
})
_opendialog.open()
}
}
function onWalletOpenError(error) {
console.log('wallet open error')