Open snod4 opened 3 months ago
It could also be the popupTimeout functionality. When I manually click on the notification, it will dismiss, but it will not do it automatically.
I'm able to sort of workaround it with this:
//Workaround for notifications with same ID?
Utils.timeout(Notifications.popupTimeout + 1000, () => {
notification.dismiss();
});
This allows the earlier notifications to dismiss, but it doesn't fix everything. The popup timeout still uses sends the 'dismiss()' event to the first notification with the ID. That causes the most recent notification to get dismissed before it's time.
Hi, I have a scenario where a program is sending out notifications with the same ID each time.
It seems like the hooks depend on ID. When I try to hook into a notification (2) after a hook has been established for a prior notification (1) with the same ID, the hook does not take effect for (2). It would be nice to have a method to change the ID. I would just modify the ID manually, but I don't know all of where it's used.
I'm using a variant of your dotfile notification popup code in case I'm missing something obvious there: