re-introduce merge menu item

pull/901/head
Mikael Finstad 2022-02-23 21:16:02 +08:00
rodzic a7d6138bd3
commit b4641aeb22
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 25AB36E3E81CBC26
2 zmienionych plików z 9 dodań i 2 usunięć

Wyświetl plik

@ -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') },

Wyświetl plik

@ -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 {