mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-22 22:59:09 +02:00
Refactor UI --------- Co-authored-by: Eduard Gert <kontakt@eduardgert.de> Co-authored-by: braginini <bangvalo@gmail.com> Co-authored-by: Pascal Fischer <32096965+pascal-fischer@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: riccardom <riccardomanfrin@gmail.com>
14 lines
609 B
Go
14 lines
609 B
Go
//go:build !windows && !android && !ios && !freebsd && !js && (!linux || (linux && 386))
|
|
|
|
package main
|
|
|
|
func bindTrayClick(*Tray) {
|
|
// No-op: macOS's native NSStatusItem opens the menu on click itself, and
|
|
// binding OnClick→anything blocking there froze the tray historically
|
|
// (see tray_click_windows.go). Windows wires an explicit handler
|
|
// (tray_click_windows.go); Linux opens the window on left-click
|
|
// (tray_click_linux.go). The (linux && 386) arm keeps a no-op fallback for
|
|
// the i386 Linux build, which excludes the cgo XEmbed/SNI files that
|
|
// tray_click_linux.go's build tag matches.
|
|
}
|