https://bugs.kde.org/show_bug.cgi?id=481803

cwo <cwo....@posteo.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/plasma-desktop/-/commit/
                   |                            |76561a1e30b379fc49ae820af8a
                   |                            |8f66525e83ffc

--- Comment #2 from cwo <cwo....@posteo.net> ---
Git commit 76561a1e30b379fc49ae820af8a8f66525e83ffc by Christoph Wolk.
Committed on 24/02/2025 at 02:03.
Pushed by cwo into branch 'master'.

applets/window-list: show placeholder when empty

The window list in both forms (panel and desktop) does not handle the
case of having no windows open well; the desktop form is simply empty,
while the panel form has a completely empty menu active.

This change adds a Kirigami.PlaceHolder to the fullRepresentation and
sets a menu containing only a "No open windows" entry that does nothing
for the compactRepresentation. These are modeled on the way that the
task switchers handle this case. Along the way, we rename ids so that
"windowListView" refers to the ListView and not the component that wraps
it, because that is just confusing.

----


| before | after  |
| ------ | ------ |
![windowlist_before](/uploads/3056dff1bcbe2a1dce281a721f255a19/windowlist_before.png)|
![windowlist_after](/uploads/9221f6f0cdb998852e25c45aafd57464/windowlist_after.png)|

(Note that in the before screenshot, while the popup is empty and completely
invisible, it's still modal, so the next click anywhere will do nothing except
make the popup that's already not there even less there)

M  +22   -4    applets/window-list/contents/ui/main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/76561a1e30b379fc49ae820af8a8f66525e83ffc

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to