From c0473d87565569202d548eba47279321e287990c Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 15 Sep 2026 14:54:36 +0200 Subject: fix(notifications): apply final review fixes Mirror the balloon's right-click close-all on the drawer row: the spec says the gestures are identical in both forms, and a right-click on a row previously did nothing. The right-button branch precedes the live guard so it behaves the same on history rows. Stop importing the Status singleton into the notification shell. Referencing it instantiated it, and its onPresentationChanged writes status.dnd and runs breaktimer.sh, so a read-only consumer was writing state and shelling out on every presentation toggle, and doubled the dndBeforePresentation race. Notify now reads "/run/user//status.dnd" directly through a FileView, the same convention as the notifyd files; a missing file means off. AGENTS.md named Drawer.qml as the drawer's reserved space; it is desktop/NotificationList.qml. --- notifications/NotificationBalloon.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'notifications/NotificationBalloon.qml') diff --git a/notifications/NotificationBalloon.qml b/notifications/NotificationBalloon.qml index e3763da..b8ce0f7 100644 --- a/notifications/NotificationBalloon.qml +++ b/notifications/NotificationBalloon.qml @@ -31,7 +31,7 @@ Rectangle { visible: { if (Notify.drawerOpen) return false; if (Notify.snoozeUntil > b.now) return false; - if (Status.dnd && b.notification.urgency !== "critical") return false; + if (Notify.dnd && b.notification.urgency !== "critical") return false; if (b.notification.expires !== 0 && b.now >= b.notification.expires) return false; return true; } -- cgit v1.2.3