32 lines
1.4 KiB
Diff
32 lines
1.4 KiB
Diff
From 4ab3894d75e1f9c6c7738a893a9b707ff0575953 Mon Sep 17 00:00:00 2001
|
|
From: Nate Graham <nate@kde.org>
|
|
Date: Thu, 21 Aug 2025 19:37:33 -0600
|
|
Subject: [PATCH] notifications: make "you missed some notifications"
|
|
notification transient
|
|
|
|
Its purpose is to direct you to the notifications history. If you're
|
|
seeing it *in* the notification history, its purpose has been bypassed
|
|
because you're already where it wanted to take you.
|
|
|
|
Don't show it in the notification history.
|
|
---
|
|
libnotificationmanager/notifications.cpp | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/libnotificationmanager/notifications.cpp b/libnotificationmanager/notifications.cpp
|
|
index f68c342e7e9..128665f4de9 100644
|
|
--- a/libnotificationmanager/notifications.cpp
|
|
+++ b/libnotificationmanager/notifications.cpp
|
|
@@ -917,6 +917,9 @@ void Notifications::showInhibitionSummary(Urgency urgency, const QStringList &bl
|
|
notification->setIconName(u"preferences-desktop-notification-bell"_s);
|
|
notification->setFlags(KNotification::CloseOnTimeout);
|
|
notification->setComponentName(u"libnotificationmanager"_s);
|
|
+ // Don't put it in the history because this doesn't make sense; if you're seeing it
|
|
+ // in the history, you're seeing the notifications it was telling you about!
|
|
+ notification->setHint(u"transient"_s, true);
|
|
|
|
const QString showNotificationsText = i18nc("@action:button Show the notifications popup", "Show Notifications");
|
|
|
|
--
|
|
GitLab
|
|
|