Clearing notification history no longer closes System Tray popup STEPS TO REPRODUCE 1. notify-send foo bar -h string:desktop-entry:firefox 2. Open notification popup 3. Close notification from history so that it is empty OBSERVED RESULT Notification is removed, notification list is empty, popup remains open EXPECTED RESULT Popup closes SOFTWARE/OS VERSIONS KDE Plasma Version: 5.20.80 master as of 2020-12-01 KDE Frameworks Version: 5.77 Qt Version: 5.15.1
Huh, works for me.
I had to add time parameter to have active notification: notify-send foo bar2 -h string:desktop-entry:firefox -t 1 Last time I checked and for me it is working exactly the same in 5.20 and now. Notification plasmoid closes when cleared. It is not closing when: * it is in passive state (in hidden area) * it is in active state, but has several notification and new one is deleted. Then it switches to passive state and does not close.
Kai, but if you say that it is not working for you as expected then clearly something changed. Recently I fixed long standing bug in System Tray, there was a race condition around "expanded" state handling. It is possible that after fixing this bug Notification applet behaves differently. Can you give more details or recording? PS. One correction to my last comment: I have active notification without the time parameter, simply had to wait a little bit longer.
The key to reproducing the issue is that you have to clear all notifications not by clicking the "Clear all" button, but rather by clicking the close buttons in the main view until no notifications are left. There is another report in Bug 435194. This one was filed first, but Bug 435194 already has a merge request that fixes it, so I'm forward-duping this to it. *** This bug has been marked as a duplicate of bug 435194 ***