12 lines
199 B
Go
12 lines
199 B
Go
//go:build !windows
|
|
|
|
package main
|
|
|
|
import "fyne.io/systray"
|
|
|
|
func startDesktopTray(onReady, onExit func()) func() {
|
|
start, end := systray.RunWithExternalLoop(onReady, onExit)
|
|
start()
|
|
return end
|
|
}
|