mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-02 03:29:07 +02:00
Tighten verbose comments in Wails UI Go code
Shorten over-long godoc/inline comments across the client/ui tray and services code: drop narrative restatement, legacy-Fyne tangents, and text already evident from signatures and names. Keep only the non-obvious why (concurrency/lock ordering, platform quirks, ordering constraints, the profile-switch state table). No code changes.
This commit is contained in:
@@ -2,13 +2,7 @@
|
||||
|
||||
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).
|
||||
// statusRowEnabled keeps the top status row enabled on Linux: a disabled row
|
||||
// paints greyed-out, washing out the status dot. The row has no OnClick, so
|
||||
// enabling only affects drawing.
|
||||
func statusRowEnabled() bool { return true }
|
||||
|
||||
Reference in New Issue
Block a user