Skip to content

The swiss army knife of lossless video/audio editing

improve "done" toast

Mikael Finstada0a7ba33b507
diff --git a/src/App.jsx b/src/App.jsx
index 92f474be..3efcea95 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -1054,19 +1054,21 @@ const App = memo(() => {
});
}
+ const msgs = [i18n.t('Done! Note: cutpoints may be inaccurate. Make sure you test the output files in your desired player/editor before you delete the source. If output does not look right, see the HELP page.')];
+
+ // https://github.com/mifi/lossless-cut/issues/329
+ if (isIphoneHevc(fileFormatData, mainStreams)) msgs.push(i18n.t('There is a known issue with cutting iPhone HEVC videos. The output file may not work in all players.'));
+
if (exportExtraStreams && enabledOutSegments.length > 1) {
try {
await extractStreams({ filePath, customOutDir, streams: nonCopiedExtraStreams });
+ msgs.push(i18n.t('Unprocessable streams were exported as separate files.'));
} catch (err) {
console.error('Extra stream export failed', err);
}
}
- // https://github.com/mifi/lossless-cut/issues/329
- const extraIphoneMsg = isIphoneHevc(fileFormatData, mainStreams) ? ` ${i18n.t('There is a known issue with cutting iPhone HEVC videos. The output file may not work in all players.')}` : '';
- const extraStreamsMsg = exportExtraStreams ? ` ${i18n.t('Unprocessable streams were exported as separate files.')}` : '';
-
- if (!hideAllNotifications) openDirToast({ dirPath: outputDir, text: `${i18n.t('Done! Note: cutpoints may be inaccurate. Make sure you test the output files in your desired player/editor before you delete the source. If output does not look right, see the HELP page.')}${extraIphoneMsg}${extraStreamsMsg}`, timer: 15000 });
+ if (!hideAllNotifications) openDirToast({ dirPath: outputDir, text: msgs.join(' '), timer: 15000 });
} catch (err) {
console.error('stdout:', err.stdout);
console.error('stderr:', err.stderr);