We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d3cc8d commit 2410daeCopy full SHA for 2410dae
app/MeetingTranscriber/Sources/MenuBarIcon.swift
@@ -97,8 +97,8 @@ enum MenuBarIcon {
97
98
case .error:
99
// Use menu bar foreground color since this badge is non-template
100
- let appearance = NSApp.effectiveAppearance
101
- let isDark = appearance.bestMatch(from: [.darkAqua, .aqua]) == .darkAqua
+ let isDark = NSApp?.effectiveAppearance
+ .bestMatch(from: [.darkAqua, .aqua]) == .darkAqua
102
(isDark ? NSColor.white : NSColor.black).setFill()
103
drawRecordingAnimation(in: rect, frame: 0)
104
drawExclamationBadge(in: rect)
0 commit comments