Skip to content

applets/notifications: suppress inhibited notifications after "Do not disturb" is off

Fushan Wen requested to merge work/fuf/testsecret into master

Reason for the change

After leaving "Do not disturb" mode, a flood of on-screen notifications ensues, causing the right-hand side of the screen to be full of rapidly scrolling and disappearing notifications for the next minute.

The user doesn't need to see any notification popup that is suppressed by DnD mode, because the notification can be viewed from the drawer anyway.

This adds a new property in the Notification class named isAddedDuringInhibition to track whether a notification is received during inhibition. When leaving DnD mode, inhibited notifications will be ignored by checking the property.

Test plan

  1. Enable DnD
  2. Create a notification using KDE Connect
  3. Disable DnD, and a summary notification is shown
  4. Enable always show notifications for KDE Connect in the notification settings
  5. Repeat 1 and 2, and a notification is shown

Screenshots or screen recordings

图片

Bugs fixed

BUG: 440837 FIXED-IN: 6.3

Edited by Fushan Wen

Merge request reports

Loading