Bug 408339

Summary: New notifications system: Plasma shows notifications triggered while "Do not disturb" mode was enabled immediately after you disable such feature
Product: [Plasma] plasmashell Reporter: Patrick Silva <bugseforuns>
Component: NotificationsAssignee: Kai Uwe Broulik <kde>
Status: RESOLVED NOT A BUG    
Severity: normal CC: nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Patrick Silva 2019-06-05 12:18:01 UTC
STEPS TO REPRODUCE
1. open system settings > Notifications
2. click "Configure..." button on botton
3. select "Spectacle" in the applications list
4. uncheck "Show in do not disturb mode" and click "Apply" button
5. enable DnD mode
6. press shift+printscreen twice
7. disable DnD mode

OBSERVED RESULT
plasma immediately shows two notifications from Spectacle

EXPECTED RESULT
plasma shows no notification when DnD mode is disabled

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.16.80
KDE Frameworks Version: 5.59.0
Qt Version: 5.12.0
Comment 1 Kai Uwe Broulik 2019-06-05 12:18:42 UTC
That's a design limitation. The notifications only time out when the popup is shown, or after 120 seconds.
Comment 2 Nate Graham 2019-06-05 14:29:40 UTC
> EXPECTED RESULT
> plasma shows no notification when DnD mode is disabled
According to your Steps To Reproduce, it didn't. It saved the notifications while you were in DnD mode and showed them to you after you disabled DnD mode.

Also typically you're not going to be turning DnD off 5 seconds after turning it on. If you had turned it off after an hour or two (as would be typical), the popups would have already internally timed out and not been shown to you.