MCPcopy
hub / github.com/CapSoftware/Cap / selectDisplayTarget

Function selectDisplayTarget

apps/desktop/src/routes/editor/ClipsSidebar.tsx:447–461  ·  view source on GitHub ↗
(target: CaptureDisplayWithThumbnail)

Source from the content-addressed store, hash-verified

445 };
446
447 const selectDisplayTarget = async (target: CaptureDisplayWithThumbnail) => {
448 setOptions(
449 "captureTarget",
450 reconcile({ variant: "display", id: target.id }),
451 );
452 setDisplayMenuOpen(false);
453 await beginEditorRecording();
454 await commands.openTargetSelectOverlays(
455 { variant: "display", id: target.id },
456 null,
457 "display",
458 );
459 setOptions({ targetMode: "display", targetModeSource: "editor" });
460 hideEditorForPicker();
461 };
462
463 const selectWindowTarget = async (target: CaptureWindowWithThumbnail) => {
464 setOptions(

Callers 1

ClipsSidebarInnerFunction · 0.70

Calls 2

beginEditorRecordingFunction · 0.85
hideEditorForPickerFunction · 0.85

Tested by

no test coverage detected