1
0

qml: qedaemon doesn't need wallet path and name properties, pass them via the signal

This commit is contained in:
Sander van Grieken
2023-02-10 14:27:39 +01:00
parent fc212b1dcc
commit e9ad9986d7
2 changed files with 8 additions and 8 deletions

View File

@@ -345,9 +345,9 @@ ApplicationWindow
Connections {
target: Daemon
function onWalletRequiresPassword() {
function onWalletRequiresPassword(name, path) {
console.log('wallet requires password')
var dialog = openWalletDialog.createObject(app, { path: Daemon.path })
var dialog = openWalletDialog.createObject(app, { path: path, name: name })
dialog.open()
}
function onWalletOpenError(error) {
@@ -445,6 +445,7 @@ ApplicationWindow
property bool _lockDialogShown: false
onActiveChanged: {
console.log('app active = ' + active)
if (!active) {
// deactivated
_lastActive = Date.now()