Closed vangork closed 9 months ago
Thanks for the report, I believe this is the same as https://github.com/tauri-apps/tray-icon/issues/89 and will hopefully will be fixed in the next release.
@amrbashir Thanks for the response. BTW, since tauri 2.0.0 removed get_item() method in the app_handle.tray(), how should I change the title for an existing menu item?
@amrbashir Meanwhile, on_tray_icon_event is not working neither on Linux.
I believe you want to see the menu events of the tray, in this case, use .on_menu_event
Describe the bug
On linux when upgrade to tauri 2.0, using TrayIconBuilder the menu is not shown upon click (left or right)
Reproduction
tauri.conf.json:
main.rs
In additional, since tauri 2.0.0 removed get_item() method in the app_handle.tray(), how should I change the title for an existing menuitem?
Expected behavior
The menu should show up upon click of the tray icon.
Platform and versions
Stack trace
No response
Additional context
No response