feat(ipc): Add commands to dismiss notifications

This commit is contained in:
loner
2025-10-13 04:34:34 +08:00
parent 7601577293
commit 6eee4aeb9e
+11
View File
@@ -43,6 +43,17 @@ Item {
function clear() {
NotificationService.clearHistory()
}
function dismissOldest() {
if (NotificationService.activeList.count > 0) {
const lastNotif = NotificationService.activeList.get(NotificationService.activeList.count - 1)
NotificationService.dismissActiveNotification(lastNotif.id)
}
}
function dismissAll() {
NotificationService.dismissAllActive()
}
}
IpcHandler {