From 0edc73610eca9510e147d9575c60fbbe9d61be3f Mon Sep 17 00:00:00 2001 From: Damian D'Souza Date: Sun, 5 Oct 2025 22:15:19 +0200 Subject: [PATCH 1/4] update lastSeenTs in notifications toggleHistory ipc call --- Services/IPCService.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/Services/IPCService.qml b/Services/IPCService.qml index 64b1225e..04e6f05c 100644 --- a/Services/IPCService.qml +++ b/Services/IPCService.qml @@ -36,6 +36,7 @@ Item { function toggleHistory() { // Will attempt to open the panel next to the bar button if any. notificationHistoryPanel.toggle(null, "NotificationHistory") + Settings.data.notifications.lastSeenTs = Time.timestamp * 1000 } function toggleDND() { Settings.data.notifications.doNotDisturb = !Settings.data.notifications.doNotDisturb From 838ac704e12c49430614809d058d90814a801d22 Mon Sep 17 00:00:00 2001 From: Damian D'Souza Date: Sun, 5 Oct 2025 22:39:10 +0200 Subject: [PATCH 2/4] remove timestamp change for notification history IpcHandler --- Services/IPCService.qml | 1 - 1 file changed, 1 deletion(-) diff --git a/Services/IPCService.qml b/Services/IPCService.qml index 04e6f05c..64b1225e 100644 --- a/Services/IPCService.qml +++ b/Services/IPCService.qml @@ -36,7 +36,6 @@ Item { function toggleHistory() { // Will attempt to open the panel next to the bar button if any. notificationHistoryPanel.toggle(null, "NotificationHistory") - Settings.data.notifications.lastSeenTs = Time.timestamp * 1000 } function toggleDND() { Settings.data.notifications.doNotDisturb = !Settings.data.notifications.doNotDisturb From bd5e5a5c96dac8ea4f9e40dc01bcf79edb8a10ed Mon Sep 17 00:00:00 2001 From: Damian D'Souza Date: Sun, 5 Oct 2025 22:47:16 +0200 Subject: [PATCH 3/4] remove lastSeenTs update from notification history onClicked --- Modules/Bar/Widgets/NotificationHistory.qml | 1 - 1 file changed, 1 deletion(-) diff --git a/Modules/Bar/Widgets/NotificationHistory.qml b/Modules/Bar/Widgets/NotificationHistory.qml index 6c53f8b1..ad9bb86b 100644 --- a/Modules/Bar/Widgets/NotificationHistory.qml +++ b/Modules/Bar/Widgets/NotificationHistory.qml @@ -61,7 +61,6 @@ NIconButton { onClicked: { var panel = PanelService.getPanel("notificationHistoryPanel") panel?.toggle(this) - Settings.data.notifications.lastSeenTs = Time.timestamp * 1000 } onRightClicked: Settings.data.notifications.doNotDisturb = !Settings.data.notifications.doNotDisturb From 8403d4fa35124d64bdf837c5fd2c9f6f02ec9dfa Mon Sep 17 00:00:00 2001 From: Damian D'Souza Date: Sun, 5 Oct 2025 22:47:47 +0200 Subject: [PATCH 4/4] add onOpened signal handler to NotificationHistoryPanel --- Modules/Notification/NotificationHistoryPanel.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Modules/Notification/NotificationHistoryPanel.qml b/Modules/Notification/NotificationHistoryPanel.qml index 6d2b7e09..30583d5b 100644 --- a/Modules/Notification/NotificationHistoryPanel.qml +++ b/Modules/Notification/NotificationHistoryPanel.qml @@ -16,6 +16,10 @@ NPanel { preferredHeight: 480 panelKeyboardFocus: true + onOpened: function() { + Settings.data.notifications.lastSeenTs = Time.timestamp * 1000 + } + panelContent: Rectangle { id: notificationRect color: Color.transparent