Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Quit ¶ added in v2.17.0
func Quit()
Quit ends the tray's event loop, which lets Run return. It is safe to call from another goroutine and does nothing if the tray has already quit.
func Run ¶
func Run( cfg *config.Instance, pl platforms.Platform, icon []byte, notify func(string), exit func(), )
Run shows the tray icon and does not return until the tray quits, because the native event loop it starts owns the calling thread. Anything that has to react to the service ending has to watch for it on another goroutine and call Quit.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.