Skip to content

Commit 301bd6f

Browse files
committed
macOS: hide settings menu icon on macOS 27
Settings appears to be somehow special and it's not hidden previously.
1 parent ec58fbc commit 301bd6f

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)