diff --git a/src/App.jsx b/src/App.jsx index 1414af56..f3897b06 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -674,7 +674,7 @@ const App = memo(() => { return { cancel: false, newCustomOutDir }; }, [customOutDir, setCustomOutDir]); - const userConcatFiles = useCallback(async ({ paths, allStreams, fileFormat: fileFormat2, isCustomFormatSelected: isCustomFormatSelected2 }) => { + const userConcatFiles = useCallback(async ({ paths, includeAllStreams, fileFormat: fileFormat2, isCustomFormatSelected: isCustomFormatSelected2 }) => { if (workingRef.current) return; try { setConcatDialogVisible(false); @@ -695,7 +695,7 @@ const App = memo(() => { } // console.log('merge', paths); - await ffmpegMergeFiles({ paths, outPath, outDir, fileFormat: fileFormat2, allStreams, ffmpegExperimental, onProgress: setCutProgress, preserveMovData, movFastStart, preserveMetadataOnMerge, chapters: chaptersFromSegments }); + await ffmpegMergeFiles({ paths, outPath, outDir, fileFormat: fileFormat2, includeAllStreams, ffmpegExperimental, onProgress: setCutProgress, preserveMovData, movFastStart, preserveMetadataOnMerge, chapters: chaptersFromSegments }); openDirToast({ icon: 'success', dirPath: outDir, text: i18n.t('Files merged!') }); } catch (err) { if (isOutOfSpaceError(err)) { diff --git a/src/components/ConcatDialog.jsx b/src/components/ConcatDialog.jsx index 3ebe5f09..4a2633fd 100644 --- a/src/components/ConcatDialog.jsx +++ b/src/components/ConcatDialog.jsx @@ -43,7 +43,7 @@ const ConcatDialog = memo(({ const { t } = useTranslation(); const [paths, setPaths] = useState(initialPaths); - const [allStreams, setAllStreams] = useState(false); + const [includeAllStreams, setIncludeAllStreams] = useState(false); const [sortDesc, setSortDesc] = useState(); const { fileFormat, setFileFormat, detectedFileFormat, setDetectedFileFormat, isCustomFormatSelected } = useFileFormatState(); @@ -90,7 +90,6 @@ const ConcatDialog = memo(({ title={t('Merge/concatenate files')} isShown={isShown} onCloseComplete={onHide} - onConfirm={() => onConcat({ paths, allStreams, fileFormat, isCustomFormatSelected })} topOffset="3vh" width="90vw" footer={( @@ -98,7 +97,7 @@ const ConcatDialog = memo(({ {fileFormat && detectedFileFormat && } - + )} > @@ -114,7 +113,7 @@ const ConcatDialog = memo(({ />
- setAllStreams(e.target.checked)} label={`${t('Include all tracks?')} ${t('If this is checked, all audio/video/subtitle/data tracks will be included. This may not always work for all file types. If not checked, only default streams will be included.')}`} /> + setIncludeAllStreams(e.target.checked)} label={`${t('Include all tracks?')} ${t('If this is checked, all audio/video/subtitle/data tracks will be included. This may not always work for all file types. If not checked, only default streams will be included.')}`} /> setPreserveMetadataOnMerge(e.target.checked)} label={t('Preserve original metadata when merging? (slow)')} />