mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-17 23:45:59 +00:00
open file command
This commit is contained in:
@@ -56,12 +56,7 @@ function buildMenu() {
|
||||
label: 'File',
|
||||
submenu: [
|
||||
commandItem('new.connection'),
|
||||
{
|
||||
label: 'Open file',
|
||||
click() {
|
||||
mainWindow.webContents.executeJavaScript(`dbgate_openFile()`);
|
||||
},
|
||||
},
|
||||
commandItem('file.open'),
|
||||
commandItem('group.save'),
|
||||
commandItem('group.saveAs'),
|
||||
{ type: 'separator' },
|
||||
@@ -70,13 +65,7 @@ function buildMenu() {
|
||||
},
|
||||
{
|
||||
label: 'Window',
|
||||
submenu: [
|
||||
commandItem('new.query'),
|
||||
{ type: 'separator' },
|
||||
|
||||
commandItem('tabs.closeAll'),
|
||||
{ role: 'minimize' },
|
||||
],
|
||||
submenu: [commandItem('new.query'), { type: 'separator' }, commandItem('tabs.closeAll'), { role: 'minimize' }],
|
||||
},
|
||||
|
||||
// {
|
||||
|
||||
Reference in New Issue
Block a user