diff --git a/app/src/electron.js b/app/src/electron.js index 9b95b162..a61f372d 100644 --- a/app/src/electron.js +++ b/app/src/electron.js @@ -51,12 +51,28 @@ function buildMenu() { mainWindow.webContents.executeJavaScript(`dbgate_newQuery()`); }, }, + { + label: 'Close all tabs', + click() { + mainWindow.webContents.executeJavaScript('dbgate_closeAll()'); + }, + }, + { type: 'separator' }, + { role: 'minimize' }, + { role: 'close' }, ], }, - { - label: 'Edit', - submenu: [{ role: 'copy' }, { role: 'paste' }], - }, + // { + // label: 'Edit', + // submenu: [ + // { role: 'undo' }, + // { role: 'redo' }, + // { type: 'separator' }, + // { role: 'cut' }, + // { role: 'copy' }, + // { role: 'paste' }, + // ], + // }, { label: 'View', submenu: [ @@ -71,20 +87,6 @@ function buildMenu() { { role: 'togglefullscreen' }, ], }, - { - role: 'window', - submenu: [ - { - label: 'Close all tabs', - click() { - mainWindow.webContents.executeJavaScript('dbgate_closeAll()'); - }, - }, - { type: 'separator' }, - { role: 'minimize' }, - { role: 'close' }, - ], - }, { role: 'help', submenu: [