mirror of
https://github.com/netbirdio/netbird.git
synced 2026-07-16 19:49:56 +00:00
The informational status row at the top of the tray menu was disabled on Linux, which painted the connection-status indicator greyed-out. Enable it on Linux so the row renders at full opacity; it has no OnClick handler so clicking it remains a no-op.
15 lines
695 B
Go
15 lines
695 B
Go
//go:build linux
|
|
|
|
package main
|
|
|
|
// statusRowEnabled reports whether the informational status row at the
|
|
// top of the tray menu should stay enabled. True on Linux: a disabled
|
|
// row is painted greyed-out, which makes the connection-status indicator
|
|
// at the top of the menu look washed-out. Keeping it enabled lets the
|
|
// row (and its coloured status dot) render at full opacity. The row has
|
|
// no OnClick handler, so clicking it is still a no-op — enabling only
|
|
// affects how it is drawn, not its behaviour. macOS disables the row
|
|
// (tray_status_enabled_other.go); Windows enables it for a different
|
|
// reason (tray_status_enabled_windows.go).
|
|
func statusRowEnabled() bool { return true }
|