Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Refactor camera overlay bounds update invocation

Richie McIlroy2a8bb2b563e4
diff --git a/apps/desktop/src/routes/target-select-overlay.tsx b/apps/desktop/src/routes/target-select-overlay.tsx
index a9dfab564..eee4d02ba 100644
--- a/apps/desktop/src/routes/target-select-overlay.tsx
+++ b/apps/desktop/src/routes/target-select-overlay.tsx
@@ -467,12 +467,12 @@ function Inner() {
if (changed) {
processing = true;
try {
- await invoke("update_camera_overlay_bounds", {
- x: target.x,
- y: target.y,
- width: target.width,
- height: target.height,
- });
+ await commands.updateCameraOverlayBounds(
+ target.x,
+ target.y,
+ target.width,
+ target.height,
+ );
lastApplied = target;
} catch (e) {
console.error("Failed to update camera window", e);