1
0

qml: OpenWalletDialog rework

This commit is contained in:
Sander van Grieken
2022-08-17 11:49:57 +02:00
parent d76726836d
commit c278d5befc
5 changed files with 88 additions and 63 deletions

View File

@@ -194,6 +194,14 @@ ApplicationWindow
}
}
property alias openWalletDialog: _openWalletDialog
Component {
id: _openWalletDialog
OpenWalletDialog {
onClosed: destroy()
}
}
property alias channelOpenProgressDialog: _channelOpenProgressDialog
ChannelOpenProgressDialog {
id: _channelOpenProgressDialog
@@ -254,7 +262,8 @@ ApplicationWindow
target: Daemon
function onWalletRequiresPassword() {
console.log('wallet requires password')
app.stack.push(Qt.resolvedUrl("OpenWallet.qml"), {"path": Daemon.path})
var dialog = openWalletDialog.createObject(app, { path: Daemon.path })
dialog.open()
}
function onWalletOpenError(error) {
console.log('wallet open error')