MCPcopy Index your code
hub / github.com/CapSoftware/Cap / openTargetMode

Function openTargetMode

apps/desktop/src/routes/editor/ClipsSidebar.tsx:429–445  ·  view source on GitHub ↗
(mode: RecordingTargetMode)

Source from the content-addressed store, hash-verified

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(

Callers 2

areaButtonFunction · 0.85
ClipsSidebarInnerFunction · 0.85

Calls 2

beginEditorRecordingFunction · 0.85
hideEditorForPickerFunction · 0.85

Tested by

no test coverage detected