forked from Shinonome/dots-hyprland
notification popups
This commit is contained in:
@@ -18,6 +18,8 @@ Singleton {
|
||||
signal initDone();
|
||||
signal notify(notification: var);
|
||||
signal discard(id: var);
|
||||
signal discardAll();
|
||||
signal timeout(id: var);
|
||||
|
||||
NotificationServer {
|
||||
id: notifServer
|
||||
@@ -69,13 +71,24 @@ Singleton {
|
||||
root.discard(id);
|
||||
}
|
||||
|
||||
function discardAll() {
|
||||
function discardAllNotifications() {
|
||||
root.list = []
|
||||
triggerListChange()
|
||||
notifFileView.setText(JSON.stringify(root.list, null, 2))
|
||||
notifServer.trackedNotifications.values.forEach((notif) => {
|
||||
notif.dismiss()
|
||||
})
|
||||
root.discardAll();
|
||||
}
|
||||
|
||||
function timeoutNotification(id) {
|
||||
root.timeout(id);
|
||||
}
|
||||
|
||||
function timeoutAll() {
|
||||
root.list.forEach((notif) => {
|
||||
root.timeout(notif.id);
|
||||
})
|
||||
}
|
||||
|
||||
function attemptInvokeAction(id, notifIdentifier) {
|
||||
|
||||
Reference in New Issue
Block a user