Skip to content

The swiss army knife of lossless video/audio editing

fix missing `FILES[N].size` #2835

Mikael Finstad2605292cb8d7
diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx
index cba279b6..cf738ea5 100644
--- a/src/renderer/src/App.tsx
+++ b/src/renderer/src/App.tsx
@@ -865,8 +865,8 @@ function App() {
const generateCutMergedFileNames = useCallback(async (template: string) => {
invariant(fileFormat != null && outputDir != null && filePath != null);
- return generateCutMergedFileNamesRaw({ template, isCustomFormatSelected, fileFormat, sourceFile: { path: filePath }, outputDir, safeOutputFileName, maxLabelLength, exportCount, currentFileExportCount, segLabels: segmentsToExport.map((seg) => seg.name ?? '') });
- }, [currentFileExportCount, exportCount, fileFormat, filePath, isCustomFormatSelected, maxLabelLength, outputDir, safeOutputFileName, segmentsToExport]);
+ return generateCutMergedFileNamesRaw({ template, isCustomFormatSelected, fileFormat, sourceFile: { path: filePath, ...mainFileMeta }, outputDir, safeOutputFileName, maxLabelLength, exportCount, currentFileExportCount, segLabels: segmentsToExport.map((seg) => seg.name ?? '') });
+ }, [currentFileExportCount, exportCount, fileFormat, filePath, isCustomFormatSelected, mainFileMeta, maxLabelLength, outputDir, safeOutputFileName, segmentsToExport]);
const generateMergedFileNames = useCallback(async (params: GenerateMergedOutFileNamesParams) => (
generateMergedFileNamesRaw({ ...params, isCustomFormatSelected, safeOutputFileName, maxLabelLength, exportCount })