Skip to content

Allow ExpandableListItem to not be expandable when it has no valid actions

Typically ExpandableListItem expands when you click on it or its expander arrow, and shows a list of contextual actions. However there may occasionally arise circumstances under which an item has no actions. An example would be in the Disks & Devices applet when a device doesn't match any of the Solid predicates and therefore gets no contextual actions. In this case, we should hide the expander arrow and now let the user try to expand it, because there would just be a little empty list stub.

Conditionally_expandable

(notice the lack of expander arrows for the internal disks' list items, since they have no contextual actions)

Supports graphics/gwenview!65 (closed)

Edited by Nate Graham

Merge request reports

Loading