settings: refactor settings store

read-only: pass flag with index.html response
theme: clean & remove old themes
This commit is contained in:
bordun 2020-03-20 12:57:47 +01:00
parent a6b82a4c93
commit a588fb2b4a
23 changed files with 203 additions and 418 deletions

View file

@ -6,16 +6,16 @@ app.setPath('userData', settings.configPath)
app.commandLine.appendSwitch('--touch-events')
if (settings.read('noVsync') || (!settings.cli && settings.read('argv')['disable-vsync'])) {
if (settings.read('disable-vsync')) {
app.commandLine.appendSwitch('--disable-gpu-vsync')
}
if (settings.read('noGpu') || (!settings.cli && settings.read('argv')['disable-gpu'])) {
if (settings.read('disable-gpu')) {
app.disableHardwareAcceleration()
app._noGpu = true
}
if (settings.read('forceGpu') || (!settings.cli && settings.read('argv')['force-gpu'])) {
if (settings.read('force-gpu')) {
app.commandLine.appendSwitch('--ignore-gpu-blacklist')
}
@ -36,7 +36,7 @@ var template = [{
if (process.platform === 'darwin') {
// Add app menu (macOs)
template.unshift({
label: settings.read('appName'),
label: settings.infos.appName,
submenu: [
{
label: 'Hide ' + infos.productName,