Skip to content

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

@Nohus

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() }
) { .. }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions