Files
netbird/client/ui/tray_label_windows.go
T
Zoltan Papp edf7e2d04d 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.
2026-06-13 00:22:27 +02:00

12 lines
281 B
Go

//go:build windows
package main
import "strings"
// menuLabel doubles ampersands so Win32 draws a literal "&" instead of
// consuming it as the menu mnemonic prefix (Wails passes the label unescaped).
func menuLabel(s string) string {
return strings.ReplaceAll(s, "&", "&&")
}