macOS: hide settings menu icon on macOS 27 (#13664)

Settings appears to be somehow special and it's not hidden previously.

This would require building with Xcode 27 tho.

<img width="704" height="364" alt="image"
src="https://github.com/user-attachments/assets/2cb23a01-6840-40a2-b794-6a8e914aaa7d"
/>
This commit is contained in:
Mitchell Hashimoto
2026-08-06 06:45:41 -07:00
committed by GitHub

View File

@@ -7,5 +7,10 @@ extension NSMenuItem {
if #available(macOS 26, *) {
image = NSImage(systemSymbolName: symbol, accessibilityDescription: title)
}
#if compiler(>=6.4)
if #available(macOS 27.0, *) {
preferredImageVisibility = .automatic
}
#endif
}
}