main: create a simple config window to set CLI arguments when executed without argument
This commit is contained in:
parent
94fa41ca3a
commit
59326dff48
7 changed files with 325 additions and 14 deletions
16
app/main/electron-app.js
Normal file
16
app/main/electron-app.js
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue