Skip to content

No way to open the tray menu with left-click #346

Description

@Nohus

When I left-click the tray icon, nothing happens. I know I can set a primary action, but I want the primary action to be opening the menu (the menu opens fine when right-clicking), and I can't find a way to do that. In the Readme I see you wrote:

// Open a window, display a menu, etc.

But there is no example I can see for actually displaying a menu. I was expecting something like this for example

val menuState = rememberMenuState()
Tray(
    menuState = menuState,
    primaryAction = { menuState.open() }
) { .. }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions