mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-28 17:49:08 +02:00
Win32 swallows a lone & in an MFT_STRING menu item as the mnemonic prefix, so "Help & Support" rendered as "Help Support". Add a build-tagged menuLabel() helper that doubles & to && on Windows and is the identity on macOS/Linux (which render & literally), and apply it to the About submenu label.
10 lines
396 B
Go
10 lines
396 B
Go
//go:build !windows && !android && !ios && !freebsd && !js
|
|
|
|
package main
|
|
|
|
// menuLabel is the identity on macOS and Linux — both render an ampersand
|
|
// literally in tray-menu labels, so no escaping is needed. Windows opts in via
|
|
// the sibling tray_label_windows.go file, where a lone "&" would otherwise be
|
|
// swallowed as a Win32 mnemonic prefix.
|
|
func menuLabel(s string) string { return s }
|