You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Via SetMenuDefaultItem, an option in the system tray can be emphasized and marked as default. Like so:
Show Bluetooth Devices is the default item
This requires the HMENU handle to the menu, which is currently inaccessible through the Tauri system tray API. It is, however, accessible through hpopupmenu() in the tray_icon crate.
Describe the solution you'd like
Either:
Expose hpopupmenu() to get the HMENU handle as done in the tray_icon crate. Devs can then call SetMenuDefaultItem themselves.
Be able to pass a flag via the MenuBuilder API to mark an item as default.
Alternatives considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the problem
Via
SetMenuDefaultItem
, an option in the system tray can be emphasized and marked as default. Like so:Show Bluetooth Devices
is the default itemThis requires the
HMENU
handle to the menu, which is currently inaccessible through the Tauri system tray API. It is, however, accessible throughhpopupmenu()
in thetray_icon
crate.Describe the solution you'd like
Either:
hpopupmenu()
to get theHMENU
handle as done in thetray_icon
crate. Devs can then callSetMenuDefaultItem
themselves.MenuBuilder
API to mark an item as default.Alternatives considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: