15 lines
521 B
Go
15 lines
521 B
Go
|
|
//go:build darwin
|
||
|
|
|
||
|
|
package main
|
||
|
|
|
||
|
|
// On macOS, Cocoa requires the system tray to run on the main thread, which
|
||
|
|
// Wails already owns. Full menu-bar tray integration is future work and would
|
||
|
|
// require an NSStatusItem helper or a fork of systray that supports
|
||
|
|
// RunWithExternalLoop on macOS.
|
||
|
|
//
|
||
|
|
// For now the app hides to the Dock when the window is closed (HideWindowOnClose)
|
||
|
|
// and users can reopen it from the Dock or Cmd+Tab. The standard macOS Cmd+Q
|
||
|
|
// binding quits cleanly via Wails.
|
||
|
|
|
||
|
|
func (a *App) startTray() {}
|