Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we add *MenuItem.AddSeparator() please? #170

Open
sithembiso opened this issue Sep 13, 2020 · 1 comment · May be fixed by #279
Open

Can we add *MenuItem.AddSeparator() please? #170

sithembiso opened this issue Sep 13, 2020 · 1 comment · May be fixed by #279

Comments

@sithembiso
Copy link
Contributor

To be consistent with other frameworks (like Electron for example), I think it is necessary to make this option available. My sub-menu has become untidy. I'm new to this project, so I'm still trying to figure things out. If anyone can suggest a starting point, I'd be happy to make a PR.

@getlantern getlantern deleted a comment from joesis Mar 1, 2021
@getlantern getlantern deleted a comment from sithembiso Mar 1, 2021
@getlantern getlantern deleted a comment from sithembiso Mar 1, 2021
@getlantern getlantern deleted a comment from joesis Mar 1, 2021
@getlantern getlantern deleted a comment from sithembiso Mar 1, 2021
@davidnewhall
Copy link

I'd like this feature too. Here's my silly workaround:

menu := systray.AddMenuItem("Menu", "tooltip for menu")
menu.AddSubMenuItem("__________", "")).Disable()

forfuncsake added a commit to forfuncsake/systray that referenced this issue Oct 14, 2024
Fixes getlantern#170

Add implementation of separators in submenus for
mac, linux and windows.
@forfuncsake forfuncsake linked a pull request Oct 14, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants