arrange segments menu

pull/1764/head
Mikael Finstad 2023-10-30 10:48:06 +09:00
rodzic e014f362e6
commit d7ba574472
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 25AB36E3E81CBC26
1 zmienionych plików z 30 dodań i 18 usunięć

Wyświetl plik

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