cli: move novsync cli setting check so that it can be read from user config file

This commit is contained in:
jean-emmanuel 2016-12-09 18:35:03 +01:00
parent d68583b4ef
commit 047b882bd7
2 changed files with 8 additions and 7 deletions

View file

@ -26,10 +26,6 @@ var start = function(readyApp) {
var app = require('./electron-app')
var address = typeof settings.read('guiOnly')=='string'? 'http://' + settings.read('guiOnly') : settings.read('appAddresses')[0]
if (settings.read('noVsync')) {
app.commandLine.appendSwitch('--disable-gpu-vsync')
}
if (app.isReady()) {
return require('./electron-window')({address:address, shortcuts:true})
} else {