(target: CaptureDisplayWithThumbnail)
| 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( |
no test coverage detected