From d7ba57447226cb8ed404697805e99c2b59cce2f0 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Mon, 30 Oct 2023 10:48:06 +0900 Subject: [PATCH] arrange segments menu --- public/menu.js | 48 ++++++++++++++++++++++++++++++------------------ 1 file changed, 30 insertions(+), 18 deletions(-) diff --git a/public/menu.js b/public/menu.js index 2a6d560..ed0c3da 100644 --- a/public/menu.js +++ b/public/menu.js @@ -216,18 +216,6 @@ module.exports = ({ app, mainWindow, newVersion, isStoreBuild }) => { { label: esc(t('Segments')), submenu: [ - { - label: esc(t('Clear all segments')), - click() { - mainWindow.webContents.send('clearSegments'); - }, - }, - { - label: esc(t('Reorder segments by start time')), - click() { - mainWindow.webContents.send('reorderSegsByStartTime'); - }, - }, { label: esc(t('Create num segments')), click() { @@ -246,18 +234,24 @@ module.exports = ({ app, mainWindow, newVersion, isStoreBuild }) => { mainWindow.webContents.send('createRandomSegments'); }, }, + + { type: 'separator' }, + { - label: esc(t('Invert all segments on timeline')), + label: esc(t('Reorder segments by start time')), click() { - mainWindow.webContents.send('invertAllSegments'); + mainWindow.webContents.send('reorderSegsByStartTime'); }, }, { - label: esc(t('Fill gaps between segments')), + label: esc(t('Shuffle segments order')), click() { - mainWindow.webContents.send('fillSegmentsGaps'); + mainWindow.webContents.send('shuffleSegments'); }, }, + + { type: 'separator' }, + { label: esc(t('Combine overlapping segments')), click() { @@ -271,11 +265,20 @@ module.exports = ({ app, mainWindow, newVersion, isStoreBuild }) => { }, }, { - label: esc(t('Shuffle segments order')), + label: esc(t('Invert all segments on timeline')), click() { - mainWindow.webContents.send('shuffleSegments'); + mainWindow.webContents.send('invertAllSegments'); }, }, + { + label: esc(t('Fill gaps between segments')), + click() { + mainWindow.webContents.send('fillSegmentsGaps'); + }, + }, + + { type: 'separator' }, + { label: esc(t('Shift all segments on timeline')), click() { @@ -288,6 +291,15 @@ module.exports = ({ app, mainWindow, newVersion, isStoreBuild }) => { mainWindow.webContents.send('alignSegmentTimesToKeyframes'); }, }, + + { type: 'separator' }, + + { + label: esc(t('Clear all segments')), + click() { + mainWindow.webContents.send('clearSegments'); + }, + }, ], },