Skip to content

Commit 99c483f

Browse files
authored
macOS: hide settings menu icon on macOS 27 (ghostty-org#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" />
2 parents 33bdeed + 301bd6f commit 99c483f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

macos/Sources/Helpers/Extensions/NSMenuItem+Extension.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,10 @@ extension NSMenuItem {
77
if #available(macOS 26, *) {
88
image = NSImage(systemSymbolName: symbol, accessibilityDescription: title)
99
}
10+
#if compiler(>=6.4)
11+
if #available(macOS 27.0, *) {
12+
preferredImageVisibility = .automatic
13+
}
14+
#endif
1015
}
1116
}

0 commit comments

Comments
 (0)