main: better error handling (prevent some error boxes)

This commit is contained in:
jean-emmanuel 2018-02-17 17:33:33 +01:00
parent 03ea75857c
commit d11f88b992
2 changed files with 12 additions and 13 deletions

View file

@ -1,11 +1,10 @@
var {app, Menu, shell} = require('electron'),
var {app, Menu, shell, dialog} = require('electron'),
settings = require('./settings'),
path = require('path'),
infos = require('../package.json')
app.commandLine.appendSwitch('--touch-events')
if (settings.read('noVsync') || (!settings.cli && settings.read('argv')['disable-vsync'])) {
app.commandLine.appendSwitch('--disable-gpu-vsync')
}