[PATCH] applets/notification: fix fullRepresentation-only widgets
authorChristoph Wolk <cwo.kde@posteo.net>
Sat, 10 May 2025 17:10:30 +0000 (19:10 +0200)
committerAurélien COUDERC <coucouf@debian.org>
Tue, 20 May 2025 06:31:26 +0000 (08:31 +0200)
commit2a7cd8ee7821239ad7bf0f839de675321677287c
tree91a746d11b9e730882ffe842fca208aae1baa575
parenta83022cc959ed4811b03be0de47c5e342b468c3b
[PATCH] 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.

BUG: 503815
FIXED-IN: 6.4.0

Gbp-Pq: Name upstream_142caad0_applets-notification-fix-fullRepresentation-only-widgets.patch
applets/notifications/package/contents/ui/main.qml