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 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