Server search/hotkeys; Windows close-to-tray; background EnsureCore; SSE status with rare poll fallback. Co-authored-by: Cursor <cursoragent@cursor.com>
16 lines
377 B
Go
16 lines
377 B
Go
package trayhost
|
|
|
|
// Hooks lets the tray menu drive the VPN app without importing apphost (avoids cycles).
|
|
type Hooks struct {
|
|
Connect func()
|
|
Disconnect func()
|
|
Show func()
|
|
Quit func()
|
|
IsUp func() bool
|
|
}
|
|
|
|
// Start runs a platform tray if available. Returns false when unsupported.
|
|
func Start(appName string, h Hooks) bool {
|
|
return start(appName, h)
|
|
}
|