qml: OpenWalletDialog rework
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user