linuxmint / blueberry

A Bluetooth configuration tool
GNU General Public License v3.0
182 stars 53 forks source link

[WIP] Update Menu on Status Update #139

Open NPScript opened 7 months ago

NPScript commented 7 months ago

There is a problem in the current blueberry-tray.py that the Turn off Bluetooth button does not change to Turn on Bluetooth since the menu is only built once and never updated.

This problem is resolved by moving the set_menu call into the update_icon_callback. With this the menu will always be updated when the Bluetooth status changes.

I also merged the following patch into my branch: libappindicator-patch.

This will allow blueberry-tray to also run under Wayland.

clefebvre commented 5 months ago

I'm not against this, but it's malformed.. you've mixed in more than the fix in this PR.

I see code cleanup, the fix itself and a move to AppIndicator.

I'm interested in knowing who still uses blueberry, with what version of GNOME BT, and whether it's in Wayland or Xorg.

Come and chat with us on Matrix if you get a chance: https://matrix.to/#/#xapp:matrix.org

Blueberry is no longer used in Mint but if other people use it we can revive this project and see how to maintain it going forward.