perf: consolidate notif timeStr timers into one global tick; fix osd open-on-start

This commit is contained in:
Damocles 2026-04-15 20:02:46 +02:00
parent 9fa2a72a0b
commit 6c37b6640c
4 changed files with 28 additions and 23 deletions

View file

@ -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: {