//go:build windows package main import "fyne.io/systray" // systray.Run owns a message loop, and on Windows it is free to have its own: // the tray lives in its own thread with its own pump, beside the one Wails // runs for the window. A goroutine is all it needs. func startSystray(onReady func()) { go systray.Run(onReady, func() {}) }