perf: consolidate notif timeStr timers into one global tick; fix osd open-on-start
This commit is contained in:
parent
9fa2a72a0b
commit
6c37b6640c
4 changed files with 28 additions and 23 deletions
|
|
@ -124,6 +124,15 @@ QtObject {
|
|||
}
|
||||
|
||||
// Persistence
|
||||
// Single global tick for all NotifItem.timeStr bindings — replaces per-item 5s timers
|
||||
property real _now: Date.now()
|
||||
property Timer _nowTimer: Timer {
|
||||
running: root.count > 0
|
||||
repeat: true
|
||||
interval: 5000
|
||||
onTriggered: root._now = Date.now()
|
||||
}
|
||||
|
||||
property Timer _saveTimer: Timer {
|
||||
interval: 1000
|
||||
onTriggered: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue