From 9ca10ef100d0140ce14864c5344895bc91cc0687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Fri, 11 Sep 2026 09:37:36 -0700 Subject: [PATCH 1/2] Indicator: create header settings if it doesn't exist when we get a new notification --- src/Indicator.vala | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Indicator.vala b/src/Indicator.vala index ae134de5..a713f302 100644 --- a/src/Indicator.vala +++ b/src/Indicator.vala @@ -154,6 +154,14 @@ public class Notifications.Indicator : Wingpanel.Indicator { sort_list_model.section_sorter.changed (DIFFERENT); } + // Create value if it doesn't exist and set true + var settings = new Settings ("io.elementary.panel.notifications"); + var headers = (HashTable) settings.get_value ("headers"); + if (!headers.contains (notification.desktop_id)) { + headers[notification.desktop_id] = true; + settings.set_value ("headers", headers); + } + list_store.append (notification); } From 282635d228861c3d56e8f8e8f36a7529d46275f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Tue, 6 Oct 2026 05:47:58 -0700 Subject: [PATCH 2/2] Update Indicator.vala Co-authored-by: Ryo Nakano --- src/Indicator.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Indicator.vala b/src/Indicator.vala index 76d1cf64..83477026 100644 --- a/src/Indicator.vala +++ b/src/Indicator.vala @@ -157,7 +157,7 @@ public class Notifications.Indicator : Wingpanel.Indicator { // Create value if it doesn't exist and set true var settings = new Settings ("io.elementary.panel.notifications"); var headers = (HashTable) settings.get_value ("headers"); - if (!headers.contains (notification.desktop_id)) { + if (!(notification.desktop_id in headers)) { headers[notification.desktop_id] = true; settings.set_value ("headers", headers); }