Skip to content

Commit

Permalink
Implement com.canonical.dbusmenu.AboutToShow
Browse files Browse the repository at this point in the history
KDE Plasma expects this method to be implemented. Otherwise it just does not show submenus.

Closes blueman-project#1856
  • Loading branch information
cschramm committed Sep 19, 2022
1 parent 263985f commit 817bdbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
### Bugs fixed

* Issues with NM PANU connections of equally named devices
* Submenus in KDE Plasma tray

## 2.3.1

Expand Down
1 change: 1 addition & 0 deletions blueman/main/indicators/StatusNotifierItem.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def __init__(self, on_activate_menu_item: "MenuItemActivator") -> None:

self.add_method("GetLayout", ("i", "i", "as"), ("u", "(ia{sv}av)"), self._get_layout)
self.add_method("Event", ("i", "s", "v", "u"), (), self._on_event)
self.add_method("AboutToShow", ("i",), ("b",), lambda _: self._revision > self._revision_advertised)

self.add_method("GetGroupProperties", ("ai", "as"), ("a(ia{sv})",),
lambda ids, props: [(idx, self._render_item(item)) for idx, item in self._iterate_items()
Expand Down

0 comments on commit 817bdbd

Please sign in to comment.