mirror of
https://github.com/jely2002/youtube-dl-gui.git
synced 2021-11-01 22:46:21 +03:00
fix: remove global dev-tools shortcut & enable local shortcut (#106)
This commit is contained in:
4
main.js
4
main.js
@@ -1,4 +1,4 @@
|
||||
const { app, BrowserWindow, ipcMain, dialog, Menu, globalShortcut, shell, clipboard } = require('electron');
|
||||
const { app, BrowserWindow, ipcMain, dialog, Menu, shell, clipboard } = require('electron');
|
||||
const Environment = require('./modules/Environment');
|
||||
const path = require('path');
|
||||
const QueryManager = require("./modules/QueryManager");
|
||||
@@ -189,7 +189,6 @@ function createWindow(env) {
|
||||
contextIsolation: true
|
||||
}
|
||||
})
|
||||
win.removeMenu()
|
||||
if(process.argv[2] === '--dev') {
|
||||
win.webContents.openDevTools()
|
||||
}
|
||||
@@ -208,7 +207,6 @@ app.on('ready', async () => {
|
||||
env = new Environment(app, analytics);
|
||||
await env.initialize();
|
||||
createWindow(env);
|
||||
globalShortcut.register('Control+Shift+I', () => { win.webContents.openDevTools(); })
|
||||
})
|
||||
|
||||
//Quit the application when all windows are closed, except for darwin
|
||||
|
||||
Reference in New Issue
Block a user