kopia lustrzana https://github.com/mifi/lossless-cut
re-introduce merge menu item
rodzic
a7d6138bd3
commit
b4641aeb22
|
@ -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') },
|
||||
|
|
|
@ -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 {
|
||||
|
|
Ładowanie…
Reference in New Issue