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

Clicking on the tray icon itself? #217

Open
precisionpete opened this issue Nov 28, 2021 · 5 comments
Open

Clicking on the tray icon itself? #217

precisionpete opened this issue Nov 28, 2021 · 5 comments

Comments

@precisionpete
Copy link

Is there a way to receive a click on the systray icon itself?

i.e. If you had a menu with only one choice, it would be nice to skip the menu altogether and just perform an action. Like Microsoft OneDrive does... Click the icon and it brings up a whole window...

e.g.

trayIcon := systray.Icon()
select {
case <-iconClick.ClickedCh:
	MyOpenWindow("http://example.com")
}

Otherwise, great! Thanks

@TheFranconianCoder
Copy link

Same situation here. Would be very helpful.

@davidnewhall
Copy link

This duplicates #188.

@sxmxta
Copy link

sxmxta commented Jan 10, 2023

  • I added the double click and click events for the tray icon for windows and linux in systray
  • macos has not been added. If you need it, please contact me.

@precisionpete
Copy link
Author

Yes. That would be great! Thanks

@sxmxta
Copy link

sxmxta commented Jan 17, 2023

Yes. That would be great! Thanks

  • This is a new branch

systray

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

No branches or pull requests

4 participants