Skip to content

Commit

Permalink
fix menubar in screen area
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyun6 committed Apr 24, 2024
1 parent 3b55030 commit 2bec323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QuickRecorder/RecordEngine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ extension AppDelegate {
if ud.bool(forKey: "removeWallpaper") { if dockApp != nil { except += wallpaper}}
if ud.bool(forKey: "hideDesktopFiles") { except += desktopFiles }
filter = SCContentFilter(display: SCContext.screen ?? SCContext.getSCDisplayWithMouse()!, excludingApplications: excluded, exceptingWindows: except)
if #available(macOS 14.2, *) { filter?.includeMenuBar = (SCContext.streamType == .screen && ud.bool(forKey: "includeMenuBar")) }
if #available(macOS 14.2, *) { filter?.includeMenuBar = ((SCContext.streamType == .screen || SCContext.streamType == .screenarea) && ud.bool(forKey: "includeMenuBar")) }
}
if SCContext.streamType == .application {
var includ = SCContext.application!
Expand Down

0 comments on commit 2bec323

Please sign in to comment.