arrange segments menu

pull/1764/head
Mikael Finstad 2 years ago
parent e014f362e6
commit d7ba574472
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

@ -216,18 +216,6 @@ module.exports = ({ app, mainWindow, newVersion, isStoreBuild }) => {
{ {
label: esc(t('Segments')), label: esc(t('Segments')),
submenu: [ 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')), label: esc(t('Create num segments')),
click() { click() {
@ -246,18 +234,24 @@ module.exports = ({ app, mainWindow, newVersion, isStoreBuild }) => {
mainWindow.webContents.send('createRandomSegments'); mainWindow.webContents.send('createRandomSegments');
}, },
}, },
{ type: 'separator' },
{ {
label: esc(t('Invert all segments on timeline')), label: esc(t('Reorder segments by start time')),
click() { click() {
mainWindow.webContents.send('invertAllSegments'); mainWindow.webContents.send('reorderSegsByStartTime');
}, },
}, },
{ {
label: esc(t('Fill gaps between segments')), label: esc(t('Shuffle segments order')),
click() { click() {
mainWindow.webContents.send('fillSegmentsGaps'); mainWindow.webContents.send('shuffleSegments');
}, },
}, },
{ type: 'separator' },
{ {
label: esc(t('Combine overlapping segments')), label: esc(t('Combine overlapping segments')),
click() { 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() { 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')), label: esc(t('Shift all segments on timeline')),
click() { click() {
@ -288,6 +291,15 @@ module.exports = ({ app, mainWindow, newVersion, isStoreBuild }) => {
mainWindow.webContents.send('alignSegmentTimesToKeyframes'); mainWindow.webContents.send('alignSegmentTimesToKeyframes');
}, },
}, },
{ type: 'separator' },
{
label: esc(t('Clear all segments')),
click() {
mainWindow.webContents.send('clearSegments');
},
},
], ],
}, },

Loading…
Cancel
Save