From 296ee20e98ee1c617ff97056fced66619bdd3448 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 20 May 2026 15:23:29 +0200 Subject: [PATCH] Rename notification timer state --- shell/plugins/notifications/Service.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shell/plugins/notifications/Service.qml b/shell/plugins/notifications/Service.qml index 6da0b9c0..e7c22687 100644 --- a/shell/plugins/notifications/Service.qml +++ b/shell/plugins/notifications/Service.qml @@ -842,7 +842,7 @@ Item { implicitHeight: card.implicitHeight readonly property real lifetime: service.durationFor(cardSlot.urgency) - property real progress: 1.0 + property real remainingLifetime: 1.0 readonly property bool ticking: cardSlot.lifetime > 0 && !card.hovered Timer { @@ -851,9 +851,9 @@ Item { running: cardSlot.ticking onTriggered: { if (cardSlot.lifetime <= 0) return - cardSlot.progress -= 50.0 / cardSlot.lifetime - if (cardSlot.progress <= 0) { - cardSlot.progress = 0 + cardSlot.remainingLifetime -= 50.0 / cardSlot.lifetime + if (cardSlot.remainingLifetime <= 0) { + cardSlot.remainingLifetime = 0 service.dismissPopup(cardSlot.index) } }