(mode: RecordingTargetMode)
| 427 | }; |
| 428 | |
| 429 | const openTargetMode = async (mode: RecordingTargetMode) => { |
| 430 | setDisplayMenuOpen(false); |
| 431 | setWindowMenuOpen(false); |
| 432 | await beginEditorRecording(); |
| 433 | |
| 434 | if (mode === "camera") { |
| 435 | setOptions( |
| 436 | "captureTarget", |
| 437 | reconcile({ variant: "cameraOnly" } as ScreenCaptureTarget), |
| 438 | ); |
| 439 | setOptions("captureSystemAudio", false); |
| 440 | } |
| 441 | |
| 442 | await commands.openTargetSelectOverlays(null, null, mode); |
| 443 | setOptions({ targetMode: mode, targetModeSource: "editor" }); |
| 444 | hideEditorForPicker(); |
| 445 | }; |
| 446 | |
| 447 | const selectDisplayTarget = async (target: CaptureDisplayWithThumbnail) => { |
| 448 | setOptions( |
no test coverage detected