The swiss army knife of lossless video/audio editing
improve error msg #2890
Mikael Finstad260528d8458e
diff --git a/src/renderer/src/dialogs/index.tsx b/src/renderer/src/dialogs/index.tsxindex 44c10cef..6ed52351 100644--- a/src/renderer/src/dialogs/index.tsx+++ b/src/renderer/src/dialogs/index.tsx@@ -223,7 +223,12 @@ export async function askForSegmentDuration({ totalDuration, inputPlaceholder, pconst segmentDuration = parseTimecode(v);if (segmentDuration != null) {const numSegments = Math.ceil(totalDuration / segmentDuration);- if (segmentDuration > 0 && segmentDuration < totalDuration && numSegments <= maxSegments) return null;+ if (segmentDuration > 0 && numSegments <= maxSegments) {+ if (segmentDuration < totalDuration) {+ return null;+ }+ return i18n.t('Value must be shorter than total duration ({{totalDuration}})', { totalDuration: formatDuration({ seconds: totalDuration, shorten: true }) });+ }}return i18n.t('Please input a valid duration. Example: {{example}}', { example: inputPlaceholder });},