fix: Component.onCompleted doesn't work on QML Singletons
Replaced with Timer { interval: 0; running: true } in:
- Session.qml (boot IPC audit)
- SessionAudit.qml (init log)
- SessionEvents.qml (init log)
This commit is contained in:
parent
ffe4157e1c
commit
10c206c09c
3 changed files with 24 additions and 8 deletions
|
|
@ -214,7 +214,11 @@ Singleton {
|
|||
}
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
console.log("[audit] initialized; log at " + root.auditPath);
|
||||
Timer {
|
||||
id: initLogTimer
|
||||
interval: 0
|
||||
repeat: false
|
||||
running: true
|
||||
onTriggered: console.log("[audit] initialized; log at " + root.auditPath)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue