Skip to content

Commit

Permalink
StatusNotifierItem: announce children-display (#2597)
Browse files Browse the repository at this point in the history
  • Loading branch information
rilian-la-te authored Jan 3, 2025
1 parent 6c6fbfa commit 14f24a2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions blueman/main/indicators/StatusNotifierItem.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ def _advertise_revision(self) -> bool:
def _get_layout(self, parent_id: int, _recursion_depth: int, _property_names: list[str]
) -> tuple[int, tuple[int, dict[str, GLib.Variant], list[GLib.Variant]]]:
if parent_id == 0:
return self._revision, (0, {}, self._render_menu(((item["id"] << 8, item) for item in self._items.values()),
self._render_submenu))
return self._revision, (0, {'children-display': GLib.Variant("s", "submenu")},
self._render_menu(((item["id"] << 8, item) for item in self._items.values()),
self._render_submenu))
else:
item = self._items[parent_id >> 8]
if "submenu" in item and _recursion_depth != 0:
Expand Down

0 comments on commit 14f24a2

Please sign in to comment.