Bug 433666

Summary: Applet's "Clear history" action is sometimes inappropriately disabled
Product: [Plasma] plasmashell Reporter: Nils <bugs.kde.org.trustful938>
Component: NotificationsAssignee: Kai Uwe Broulik <kde>
Status: RESOLVED FIXED    
Severity: normal CC: koma111, nate, plasma-bugs, sephiroth_pk
Priority: HI Keywords: regression, usability
Version: 5.21.1   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.22
Sentry Crash Report:
Attachments: Can't click clean history

Description Nils 2021-02-26 17:07:56 UTC
Created attachment 136201 [details]
Can't click clean history

SUMMARY
Button authorizing cleaning of history is disabled once I have activated the "do not disturb" mode. 

STEPS TO REPRODUCE
1. Get some notifications in your history
2. Activate the "Do not disturb Mode"
3. Try to clean the history.

OBSERVED RESULT

You can't.

EXPECTED RESULT

You should be able to do so.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.11.1-arch1-1
KDE Plasma Version: 5.21.1
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Comment 1 Nate Graham 2021-03-02 16:29:45 UTC
Does not seem to be strictly speaking related to being in DnD mode, but I've seen the action become inappropriately disabled in other contexts too. Haven't found a pattern yet.
Comment 2 Nils 2021-03-03 13:45:33 UTC
Well, I must reformulate compared to the first comment:
 - clear your history
 - activate the "Do not disturb" mode
 - get new notifications
 - try to clear them

With this scenario, I can reproduce the issue every time. So maybe there is other way to reproduce this issue, but this one is a good way to check if the issue is still there or not.
Comment 3 Matt Kovacs 2021-05-20 12:22:31 UTC
Issue present on 5.21 too. Even without enabling Do Not Disturb, the Clear Notifications action in the hamburger menu sometimes becomes disabled. It is there, so Plasma detected correctly that there are new notifications, but it is disabled. It might have been stuck in an in-between state.

Under which circumstances is it supposed to be disabled intentionally? During ongoing file transfers, downloads, Kdenlive renders, etc?

System details:
Manjaro KDE
Plasma 5.21.5
Frameworks 5.82.0
Qt 5.15.2
Kernel 5.11.14
Comment 4 Nate Graham 2021-05-20 14:30:25 UTC
This should be fixed in Plasma 5.22 by some changes made to the relevant code. I can no longer reproduce your test case. Please re-open this ticket if you see the issue again in Plasma 5.22. Thanks!