Bug 428700

Summary: Clearing notification list not possible in DnD mode / only after they have been shown
Product: [Plasma] plasmashell Reporter: Daniel <daniel-other+kdebug>
Component: NotificationsAssignee: Kai Uwe Broulik <kde>
Status: RESOLVED FIXED    
Severity: normal CC: justin.zobel, nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.20.2   
Target Milestone: 1.0   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In: 6.4.0
Sentry Crash Report:
Attachments: Clear notification list button is greyed out despite there beeing notifications in it

Description Daniel 2020-11-04 19:45:46 UTC
SUMMARY
Under certain circumstances, it isn't possible to clear the notification list.

STEPS TO REPRODUCE
1. Enable Do-not-Disturb mode.
2. Receive some notifications. They are added to the notification list.
3. Try to clear the notification list.

OBSERVED RESULT
The clear-button is greyed out, so it is impossible to clear the notification list. If you disable DnD, it is still not possible to clear the notification list, until each notification has been shown on screen and their timer has elapsed.

EXPECTED RESULT
It should be possible to sweep the notification list all the time, especially if I have very few notifications (so that all fit in the list and I have already seen them all, no scrolling needed and showing is unnecessary).
Comment 1 Justin Zobel 2020-11-04 23:58:55 UTC
I tried to replicate this on KDE Neon Unstable but I can't. I did a file copy while in DND and it shows up in the list once complete.

I can dismiss either via the "sweep" all button or individually while still in DND.
Comment 2 Nate Graham 2020-11-05 14:39:57 UTC
Works for me too. Any chance you can attach a screenshot or a screen recording that depicts the issue?
Comment 3 Daniel 2020-11-05 19:48:56 UTC
Created attachment 133062 [details]
Clear notification list button is greyed out despite there beeing notifications in it

I just reproduced it again. It seems to be important to clean the notification list before doing the steps.
Comment 4 Nate Graham 2020-11-05 20:44:36 UTC
Got it, thanks.
Comment 5 Nate Graham 2020-11-05 20:45:35 UTC
The button is enabled when `historyModel.expiredNotificationsCount > 0;` so I guess that's being set wrong somehow.
Comment 6 Nate Graham 2023-04-28 05:05:19 UTC
Any chance you can check again in Plasma 5.27 to see if this is still happening in that version? Thanks!
Comment 7 Daniel 2023-04-28 20:05:28 UTC
(In reply to Nate Graham from comment #6)
> Any chance you can check again in Plasma 5.27 to see if this is still
> happening in that version? Thanks!

Just checked, it is still happening on 5.27:

KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Comment 8 Nate Graham 2025-03-29 14:16:17 UTC
Can't reproduce in git master, soon to before Plasma 6.4; looks like it's fixed now.