mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-24 06:19:08 +02:00
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.
12 lines
281 B
Go
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, "&", "&&")
|
|
}
|