Bug 433666 - Applet's "Clear history" action is sometimes inappropriately disabled
Summary: Applet's "Clear history" action is sometimes inappropriately disabled
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notifications (show other bugs)
Version: 5.21.1
Platform: Other Linux
: HI normal
Target Milestone: 1.0
Assignee: Kai Uwe Broulik
URL:
Keywords: regression, usability
Depends on:
Blocks:
 
Reported: 2021-02-26 17:07 UTC by Nils
Modified: 2021-05-20 14:30 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.22
Sentry Crash Report:


Attachments
Can't click clean history (19.27 KB, image/png)
2021-02-26 17:07 UTC, Nils
Details

Note You need to log in before you can comment on or make changes to this bug.
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!