main: create a simple config window to set CLI arguments when executed without argument

This commit is contained in:
jean-emmanuel 2016-11-05 01:25:02 +01:00
parent 94fa41ca3a
commit 59326dff48
7 changed files with 325 additions and 14 deletions

16
app/main/electron-app.js Normal file
View file

@ -0,0 +1,16 @@
var shortcut = require('electron-localshortcut'),
{app, dialog} = require('electron')
dialog.showErrorBox = function(title,err) {
console.log(title + ': ' + err)
}
app.commandLine.appendSwitch('--enable-touch-events')
app.on('window-all-closed', function() {
if (process.platform != 'darwin') {
app.quit()
}
})
module.exports = app