Tools: Optional open dev tools in Developer Mode (#2083)

* Require --open-dev-tools along with --env dev in command line options to make opening of Dev Tools optional when in Developer mode.

* Restore original lines then comment out the call to openDevTools
pull/2115/head
barbowza 2019-11-12 16:00:44 +00:00 committed by Laurent Cozic
parent 9e227200af
commit 21d06ad9a6
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ class ElectronAppWrapper {
}));
// Uncomment this to view errors if the application does not start
if (this.env_ === 'dev') this.win_.webContents.openDevTools();
// if (this.env_ === 'dev') this.win_.webContents.openDevTools();
this.win_.on('close', (event) => {
// If it's on macOS, the app is completely closed only if the user chooses to close the app (willQuitApp_ will be true)