feat: use curve for notif clear all anim

Speeds up clearing large numbers of notifications
This commit is contained in:
2 * r + 2 * t 2026-04-03 20:25:04 +11:00
parent 2fbdfad472
commit b83ac6e50a

View file

@ -149,7 +149,7 @@ Item {
id: clearTimer id: clearTimer
repeat: true repeat: true
interval: 50 interval: Math.max(15, Math.min(80, 69.8 - 12.3 * Math.log(Notifs.notClosed.length)))
onTriggered: { onTriggered: {
const first = Notifs.notClosed[0]; const first = Notifs.notClosed[0];
if (first) { if (first) {