main: better error handling (prevent some error boxes)
This commit is contained in:
parent
83ee2fd2f3
commit
c02fb7036e
2 changed files with 12 additions and 13 deletions
|
|
@ -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')
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue