cli: add switch to toggle gui's vertical synchronization

This commit is contained in:
jean-emmanuel 2016-12-09 17:52:09 +01:00
parent 5b2a237a35
commit 7fdfb18c28
3 changed files with 9 additions and 3 deletions

View file

@ -1,12 +1,12 @@
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.commandLine.appendSwitch('--disable-gpu-vsync')
app.on('window-all-closed', function() {
if (process.platform != 'darwin') {