cli: add switch to toggle gui's vertical synchronization
This commit is contained in:
parent
5b2a237a35
commit
7fdfb18c28
3 changed files with 9 additions and 3 deletions
|
|
@ -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') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue