Bug 430026 - System Tray no longer closes when clearing notification history
Summary: System Tray no longer closes when clearing notification history
Status: RESOLVED DUPLICATE of bug 435194
Alias: None
Product: plasmashell
Classification: Plasma
Component: System Tray (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-04 23:16 UTC by Kai Uwe Broulik
Modified: 2021-05-06 02:28 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Uwe Broulik 2020-12-04 23:16:26 UTC
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
Comment 1 Nate Graham 2020-12-07 16:26:40 UTC
Huh, works for me.
Comment 2 Konrad Materka 2020-12-24 13:12:59 UTC
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.
Comment 3 Konrad Materka 2020-12-26 10:32:07 UTC
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.
Comment 4 Nate Graham 2021-05-06 02:28:04 UTC
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 ***