Bug 503815

Summary: Expanded Desktop widget does not update with new notifications once cleared
Product: [Plasma] plasmashell Reporter: ulterno
Component: NotificationsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: kde, nate
Priority: NOR    
Version First Reported In: 6.3.4   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 6.4.0
Sentry Crash Report:

Description ulterno 2025-05-05 23:33:02 UTC
SUMMARY
After adding a Notifications desktop widget and expanding it such that notifications appear inside it instead of a button click, it stops receiving new notifications

STEPS TO REPRODUCE
0. Add a Notifications desktop widget and expand it fully
1. Clear all current notifications so that the widget shows "No unread notifications"
3. Wait for Notifications

OBSERVED RESULT
- New notifications, which will appear on clicking the panel icons or even the large Notifications icon on the desktop (which can be made by making the widget not large enough), will not appear in the fully expanded widget.

EXPECTED RESULT
- New notifications appear in the expanded widget same as in the popup widgets that come up from the Notifications icons
- Alternatively, have a refresh button that can be used

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0
Kernel Version: 6.14.4-arch1-2 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: AMD Radeon RX 7600
Comment 1 Nate Graham 2025-05-06 15:16:33 UTC
Can confirm on git master.
Comment 2 Bug Janitor Service 2025-05-10 17:13:32 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5460
Comment 3 cwo 2025-05-12 06:19:52 UTC
Git commit 142caad00345dd4d6493a328a0d25fb2fb8e264a by Christoph Wolk.
Committed on 12/05/2025 at 05:59.
Pushed by cwo into branch 'master'.

applets/notification: fix fullRepresentation-only widgets

The fullRepresentation has a little efficiency trick: it unloads the
model while it is not expanded, so the ListView does not need to be
updated while it is not visible. In general this is fine, but it
interacts very badly with attempts to put the fullRepresentation
directly on the desktop (or in a very large panel) and the auto-closing
functionality of the notification applet. When the notification history
ever becomes empty, it tries to close the fullRepresentation by setting
expanded to false, which by itself does not do any harm either (the
fullRepresentation stays a fullRepresentation), but it does unload the
model, so the history never updates again (unless the user manually
resizes it to become too small for the fullRepresentation then back
again, which resets it to its proper expanded state).

Instead, we modify closePlasmoid() to only set expanded to false if the
widget is below either switchWidth or switchHeight.
FIXED-IN: 6.4.0

M  +1    -1    applets/notifications/package/contents/ui/main.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/142caad00345dd4d6493a328a0d25fb2fb8e264a