Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion electron/ipc/recording/audioFilters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function getBrowserMicSidecarFilters(profile?: string | null) {
return BROWSER_MIC_SIDECAR_FILTERS;
}

export const RECORDING_AUDIO_SIDECAR_DEBUG_ENV = "RECORDLY_KEEP_RECORDING_AUDIO_SIDECARS"; // not used yet, because we need to have seperate audio files for system and mic for each recording
export const RECORDING_AUDIO_SIDECAR_DEBUG_ENV = "RECORDLY_KEEP_RECORDING_AUDIO_SIDECARS"; // not used yet, because we need to have separate audio files for system and mic for each recording

export function shouldKeepRecordingAudioSidecars(env: NodeJS.ProcessEnv = process.env) {
const value = env[RECORDING_AUDIO_SIDECAR_DEBUG_ENV]?.trim().toLowerCase();
Expand Down
2 changes: 1 addition & 1 deletion electron/ipc/recording/prune.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export async function pruneAutoRecordings(exemptPaths: string[] = []) {
const entries = await fs.readdir(recordingsDir, { withFileTypes: true });
const autoRecordingStats = await Promise.all(
entries
.filter((entry) => entry.isFile() && /^recording-.*\.(mp4|mov|webm)$/i.test(entry.name))
.filter((entry) => entry.isFile() && isAutoRecordingPath(entry.name))
.map(async (entry) => {
const filePath = path.join(recordingsDir, entry.name);
const stats = await fs.stat(filePath);
Expand Down
10 changes: 6 additions & 4 deletions src/components/video-editor/editorHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,9 @@ export function undoEditorHistoryStack(
}

stack.future.push(cloneEditorHistorySnapshot(current));
stack.current = cloneEditorHistorySnapshot(previous);
return cloneEditorHistorySnapshot(previous);
const clonedPrevious = cloneEditorHistorySnapshot(previous);
stack.current = clonedPrevious;
return cloneEditorHistorySnapshot(clonedPrevious);
}

export function redoEditorHistoryStack(
Expand All @@ -156,6 +157,7 @@ export function redoEditorHistoryStack(
}

stack.past.push(cloneEditorHistorySnapshot(current));
stack.current = cloneEditorHistorySnapshot(next);
return cloneEditorHistorySnapshot(next);
const clonedNext = cloneEditorHistorySnapshot(next);
stack.current = clonedNext;
return cloneEditorHistorySnapshot(clonedNext);
}