The swiss army knife of lossless video/audio editing
fix edit menu removal
Mikael Finstadf46be1781c9f
diff --git a/src/menu.js b/src/menu.jsindex 7676628b..0cd2d648 100644--- a/src/menu.js+++ b/src/menu.js@@ -10,10 +10,10 @@ const releasesPage = 'https://github.com/mifi/lossless-cut/releases';module.exports = (app, mainWindow, newVersion) => {const menu = defaultMenu(app, electron.shell);- const editMenuIndex = menu.findIndex(item => item.Label === 'Edit');+ const editMenuIndex = menu.findIndex(item => item.label === 'Edit');if (editMenuIndex >= 0) menu.splice(editMenuIndex, 1);- menu.splice((process.platform === 'darwin' ? 1 : 0), 0, {+ const fileMenu = {label: 'File',submenu: [{@@ -44,7 +44,9 @@ module.exports = (app, mainWindow, newVersion) => {},},],- });+ };++ menu.splice((process.platform === 'darwin' ? 1 : 0), 0, fileMenu);const helpIndex = menu.findIndex(item => item.role === 'help');if (helpIndex >= 0) {