mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-25 01:45:59 +00:00
electron menu sinplified
This commit is contained in:
@@ -51,12 +51,28 @@ function buildMenu() {
|
|||||||
mainWindow.webContents.executeJavaScript(`dbgate_newQuery()`);
|
mainWindow.webContents.executeJavaScript(`dbgate_newQuery()`);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: 'Close all tabs',
|
||||||
|
click() {
|
||||||
|
mainWindow.webContents.executeJavaScript('dbgate_closeAll()');
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{ type: 'separator' },
|
||||||
|
{ role: 'minimize' },
|
||||||
|
{ role: 'close' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
label: 'Edit',
|
// label: 'Edit',
|
||||||
submenu: [{ role: 'copy' }, { role: 'paste' }],
|
// submenu: [
|
||||||
},
|
// { role: 'undo' },
|
||||||
|
// { role: 'redo' },
|
||||||
|
// { type: 'separator' },
|
||||||
|
// { role: 'cut' },
|
||||||
|
// { role: 'copy' },
|
||||||
|
// { role: 'paste' },
|
||||||
|
// ],
|
||||||
|
// },
|
||||||
{
|
{
|
||||||
label: 'View',
|
label: 'View',
|
||||||
submenu: [
|
submenu: [
|
||||||
@@ -71,20 +87,6 @@ function buildMenu() {
|
|||||||
{ role: 'togglefullscreen' },
|
{ role: 'togglefullscreen' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
|
||||||
role: 'window',
|
|
||||||
submenu: [
|
|
||||||
{
|
|
||||||
label: 'Close all tabs',
|
|
||||||
click() {
|
|
||||||
mainWindow.webContents.executeJavaScript('dbgate_closeAll()');
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{ type: 'separator' },
|
|
||||||
{ role: 'minimize' },
|
|
||||||
{ role: 'close' },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
role: 'help',
|
role: 'help',
|
||||||
submenu: [
|
submenu: [
|
||||||
|
|||||||
Reference in New Issue
Block a user