Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fmt
Richie McIlroy3bd7f66e3a74
diff --git a/apps/desktop/src/routes/editor/Player.tsx b/apps/desktop/src/routes/editor/Player.tsxindex 099089ccc..f8b7353b0 100644--- a/apps/desktop/src/routes/editor/Player.tsx+++ b/apps/desktop/src/routes/editor/Player.tsx@@ -73,22 +73,7 @@ export function PlayerContent() {end: segment.end,text: segment.text,})),- settings: {- enabled: captionsStore.state.settings.enabled,- font: captionsStore.state.settings.font,- size: captionsStore.state.settings.size,- color: captionsStore.state.settings.color,- backgroundColor: captionsStore.state.settings.backgroundColor,- backgroundOpacity: captionsStore.state.settings.backgroundOpacity,- position: captionsStore.state.settings.position,- italic: captionsStore.state.settings.italic,- outline: captionsStore.state.settings.outline,- outlineColor: captionsStore.state.settings.outlineColor,- exportWithSubtitles:- captionsStore.state.settings.exportWithSubtitles,- highlightColor: captionsStore.state.settings.highlightColor,- fadeDuration: captionsStore.state.settings.fadeDuration,- },+ settings: { ...captionsStore.state.settings },};// Update the project with captions datadiff --git a/apps/desktop/src/routes/editor/PresetsDropdown.tsx b/apps/desktop/src/routes/editor/PresetsDropdown.tsxindex eed4ee26a..1df533ace 100644--- a/apps/desktop/src/routes/editor/PresetsDropdown.tsx+++ b/apps/desktop/src/routes/editor/PresetsDropdown.tsx@@ -49,7 +49,7 @@ export function PresetsDropdown() {setShowSettings(false);const normalizedConfig = normalizeProject({...preset.config,- timeline: project.timeline,+ timeline: project.timeline ?? null,clips: project.clips,});setProject(reconcile(normalizedConfig));diff --git a/apps/desktop/src/utils/createPresets.ts b/apps/desktop/src/utils/createPresets.tsindex d8633d501..24050703b 100644--- a/apps/desktop/src/utils/createPresets.ts+++ b/apps/desktop/src/utils/createPresets.ts@@ -25,10 +25,11 @@ export function createPresets() {return {query,createPreset: async (preset: CreatePreset) => {- const config = { ...preset.config };- // @ts-expect-error we reeeally don't want the timeline in the preset- config.timeline = undefined;- config.clips = undefined;+ const config = {+ ...preset.config,+ timeline: null,+ clips: [],+ };await updatePresets((store) => {store.presets.push({ name: preset.name, config });