Skip to content

The swiss army knife of lossless video/audio editing

re-introduce merge menu item

Mikael Finstadb4641aeb22cf
diff --git a/public/menu.js b/public/menu.js
index 1b220d23..9cb8bdaf 100644
--- a/public/menu.js
+++ b/public/menu.js
@@ -254,10 +254,16 @@ module.exports = (app, mainWindow, newVersion) => {
{
label: i18n.t('Tools'),
submenu: [
+ {
+ label: i18n.t('Merge/concatenate files'),
+ click() {
+ mainWindow.webContents.send('concatCurrentBatch');
+ },
+ },
{
label: i18n.t('Set custom start offset/timecode'),
click() {
- mainWindow.webContents.send('askSetStartTimeOffset', true);
+ mainWindow.webContents.send('askSetStartTimeOffset');
},
},
{ role: 'toggleDevTools', label: i18n.t('Toggle Developer Tools') },
diff --git a/src/App.jsx b/src/App.jsx
index e4993da0..1982d3a9 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -2038,12 +2038,13 @@ const App = memo(() => {
invertAllCutSegments,
fixInvalidDuration: fixInvalidDuration2,
reorderSegsByStartTime,
+ concatCurrentBatch,
};
const entries = Object.entries(action);
entries.forEach(([key, value]) => electron.ipcRenderer.on(key, value));
return () => entries.forEach(([key, value]) => electron.ipcRenderer.removeListener(key, value));
- }, [apparentCutSegments, askSetStartTimeOffset, checkFileOpened, clearSegments, closeBatch, closeFileWithConfirm, createFixedDurationSegments, createNumSegments, customOutDir, cutSegments, extractAllStreams, fileFormat, filePath, fixInvalidDuration, getFrameCount, getTimeFromFrameNum, invertAllCutSegments, loadCutSegments, loadMedia, openSendReportDialogWithState, reorderSegsByStartTime, setWorking, shuffleSegments, toggleHelp, toggleSettings, userHtml5ifyCurrentFile, userOpenFiles]);
+ }, [apparentCutSegments, askSetStartTimeOffset, checkFileOpened, clearSegments, closeBatch, closeFileWithConfirm, concatCurrentBatch, createFixedDurationSegments, createNumSegments, customOutDir, cutSegments, extractAllStreams, fileFormat, filePath, fixInvalidDuration, getFrameCount, getTimeFromFrameNum, invertAllCutSegments, loadCutSegments, loadMedia, openSendReportDialogWithState, reorderSegsByStartTime, setWorking, shuffleSegments, toggleHelp, toggleSettings, userHtml5ifyCurrentFile, userOpenFiles]);
const showAddStreamSourceDialog = useCallback(async () => {
try {