From 44cf3511f40cf151a6f4f5f7f9e7aec9bcfe0ca6 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Fri, 3 Feb 2023 17:33:30 +0800 Subject: [PATCH] improve notice --- src/App.jsx | 4 +++- src/dialogs/index.jsx | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index 249c48e9..132d3961 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1426,6 +1426,8 @@ const App = memo(() => { } } + if (areWeCutting) notices.push(i18n.t('Cutpoints may be inaccurate.')); + const revealPath = concatOutPath || outFiles[0]; if (!hideAllNotifications) openCutFinishedToast({ filePath: revealPath, warnings, notices }); @@ -1457,7 +1459,7 @@ const App = memo(() => { setWorking(); setCutProgress(); } - }, [numStreamsToCopy, setWorking, segmentsToChaptersOnly, outSegTemplateOrDefault, generateOutSegFileNames, segmentsToExport, getOutSegError, cutMultiple, outputDir, customOutDir, fileFormat, duration, isRotationSet, effectiveRotation, copyFileStreams, allFilesMeta, keyframeCut, shortestFlag, ffmpegExperimental, preserveMovData, preserveMetadataOnMerge, movFastStart, avoidNegativeTs, customTagsByFile, customTagsByStreamId, dispositionByStreamId, detectedFps, enableSmartCut, enableOverwriteOutput, willMerge, mainFileFormatData, mainStreams, exportExtraStreams, hideAllNotifications, cleanupFiles, cleanupChoices, selectedSegmentsOrInverse, segmentsToChapters, invertCutSegments, autoConcatCutSegments, isCustomFormatSelected, autoDeleteMergedSegments, nonCopiedExtraStreams, filePath, handleExportFailed]); + }, [numStreamsToCopy, setWorking, segmentsToChaptersOnly, outSegTemplateOrDefault, generateOutSegFileNames, segmentsToExport, getOutSegError, cutMultiple, outputDir, customOutDir, fileFormat, duration, isRotationSet, effectiveRotation, copyFileStreams, allFilesMeta, keyframeCut, shortestFlag, ffmpegExperimental, preserveMovData, preserveMetadataOnMerge, movFastStart, avoidNegativeTs, customTagsByFile, customTagsByStreamId, dispositionByStreamId, detectedFps, enableSmartCut, enableOverwriteOutput, willMerge, mainFileFormatData, mainStreams, exportExtraStreams, areWeCutting, hideAllNotifications, cleanupChoices, cleanupFiles, selectedSegmentsOrInverse, segmentsToChapters, invertCutSegments, autoConcatCutSegments, isCustomFormatSelected, autoDeleteMergedSegments, nonCopiedExtraStreams, filePath, handleExportFailed]); const onExportPress = useCallback(async () => { if (!filePath || workingRef.current || segmentsToExport.length < 1) return; diff --git a/src/dialogs/index.jsx b/src/dialogs/index.jsx index ad48f099..b54b5127 100644 --- a/src/dialogs/index.jsx +++ b/src/dialogs/index.jsx @@ -519,7 +519,7 @@ export async function openCutFinishedToast({ filePath, warnings, notices }) { const html = ( {i18n.t('Export is done!')} - {i18n.t('Note: cutpoints may be inaccurate. Please test the output files in your desired player/editor before you delete the source file.')} + {i18n.t('Please test the output file in your desired player/editor before you delete the source file.')} @@ -533,7 +533,7 @@ export async function openConcatFinishedToast({ filePath, notices }) { const html = ( {i18n.t('Files merged!')} - {i18n.t('Please test the output files in your desired player/editor before you delete the source files.')} + {i18n.t('Please test the output files in your desired player/editor before you delete the source files.')}