Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat(editor): expose hasRecordedCursorData on transformed recording meta

Richie McIlroy0a11a805fd8e
diff --git a/apps/desktop/src/routes/editor/context.ts b/apps/desktop/src/routes/editor/context.ts
index 4fb462240..56886a391 100644
--- a/apps/desktop/src/routes/editor/context.ts
+++ b/apps/desktop/src/routes/editor/context.ts
@@ -974,6 +974,10 @@ function transformMeta({ pretty_name, ...rawMeta }: RecordingMeta) {
if (meta.type === "single") return !!meta.audio;
return !!meta.segments[0].mic;
})(),
+ hasRecordedCursorData: (() => {
+ if (meta.type === "single") return !!meta.cursor;
+ return meta.segments.some((s) => !!s.cursor);
+ })(),
};
}