kopia lustrzana https://github.com/mifi/lossless-cut
add "split segment" to menu
rodzic
d7ba574472
commit
99b3494307
|
@ -264,6 +264,12 @@ module.exports = ({ app, mainWindow, newVersion, isStoreBuild }) => {
|
||||||
mainWindow.webContents.send('combineSelectedSegments');
|
mainWindow.webContents.send('combineSelectedSegments');
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: esc(t('Split segment at cursor')),
|
||||||
|
click() {
|
||||||
|
mainWindow.webContents.send('splitCurrentSegment');
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: esc(t('Invert all segments on timeline')),
|
label: esc(t('Invert all segments on timeline')),
|
||||||
click() {
|
click() {
|
||||||
|
|
|
@ -2196,6 +2196,7 @@ const App = memo(() => {
|
||||||
fillSegmentsGaps,
|
fillSegmentsGaps,
|
||||||
combineOverlappingSegments,
|
combineOverlappingSegments,
|
||||||
combineSelectedSegments,
|
combineSelectedSegments,
|
||||||
|
splitCurrentSegment,
|
||||||
fixInvalidDuration: tryFixInvalidDuration,
|
fixInvalidDuration: tryFixInvalidDuration,
|
||||||
reorderSegsByStartTime,
|
reorderSegsByStartTime,
|
||||||
concatCurrentBatch,
|
concatCurrentBatch,
|
||||||
|
@ -2220,7 +2221,7 @@ const App = memo(() => {
|
||||||
|
|
||||||
actionsWithCatch.forEach(([key, action]) => electron.ipcRenderer.on(key, action));
|
actionsWithCatch.forEach(([key, action]) => electron.ipcRenderer.on(key, action));
|
||||||
return () => actionsWithCatch.forEach(([key, action]) => electron.ipcRenderer.removeListener(key, action));
|
return () => actionsWithCatch.forEach(([key, action]) => electron.ipcRenderer.removeListener(key, action));
|
||||||
}, [alignSegmentTimesToKeyframes, apparentCutSegments, askSetStartTimeOffset, checkFileOpened, clearSegments, closeBatch, closeFileWithConfirm, combineOverlappingSegments, combineSelectedSegments, concatCurrentBatch, createFixedDurationSegments, createNumSegments, createRandomSegments, createSegmentsFromKeyframes, customOutDir, cutSegments, detectBlackScenes, detectSceneChanges, detectSilentScenes, detectedFps, extractAllStreams, fileFormat, filePath, fillSegmentsGaps, getFrameCount, getKeyboardAction, handleShowStreamsSelectorClick, invertAllSegments, loadCutSegments, loadMedia, openFilesDialog, openSendReportDialogWithState, reorderSegsByStartTime, selectedSegments, setWorking, shiftAllSegmentTimes, shuffleSegments, toggleKeyboardShortcuts, toggleLastCommands, toggleSettings, tryFixInvalidDuration, userHtml5ifyCurrentFile, userOpenFiles]);
|
}, [alignSegmentTimesToKeyframes, apparentCutSegments, askSetStartTimeOffset, checkFileOpened, clearSegments, closeBatch, closeFileWithConfirm, combineOverlappingSegments, combineSelectedSegments, concatCurrentBatch, createFixedDurationSegments, createNumSegments, createRandomSegments, createSegmentsFromKeyframes, customOutDir, cutSegments, detectBlackScenes, detectSceneChanges, detectSilentScenes, detectedFps, extractAllStreams, fileFormat, filePath, fillSegmentsGaps, getFrameCount, getKeyboardAction, handleShowStreamsSelectorClick, invertAllSegments, loadCutSegments, loadMedia, openFilesDialog, openSendReportDialogWithState, reorderSegsByStartTime, selectedSegments, setWorking, shiftAllSegmentTimes, shuffleSegments, splitCurrentSegment, toggleKeyboardShortcuts, toggleLastCommands, toggleSettings, tryFixInvalidDuration, userHtml5ifyCurrentFile, userOpenFiles]);
|
||||||
|
|
||||||
const showAddStreamSourceDialog = useCallback(async () => {
|
const showAddStreamSourceDialog = useCallback(async () => {
|
||||||
try {
|
try {
|
||||||
|
|
Ładowanie…
Reference in New Issue