mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-07 20:31:31 +00:00
feat(ipc): Add commands to dismiss notifications
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user