From 7b40a115d9ee8bbfba9a20fdc0ea85ca973d87a2 Mon Sep 17 00:00:00 2001 From: DreamingCodes Date: Tue, 25 Apr 2023 17:47:20 +0200 Subject: [PATCH 1/3] config: increased height to fit custom flags --- src/config/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/index.js b/src/config/index.js index 713e5cfc9..16416f367 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -10,7 +10,7 @@ exports.open = () => { win = require('../utils/win')({ width: 500, - height: 650 + height: 690 }, 'config'); win.on('closed', () => { From 8bc4d2132a92169a2b9bf9010104d84085af918f Mon Sep 17 00:00:00 2001 From: DreamingCodes Date: Tue, 25 Apr 2023 18:02:53 +0200 Subject: [PATCH 2/3] feat: Implement customFlags --- src/cmdSwitches.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cmdSwitches.js b/src/cmdSwitches.js index b4c458bca..4f9d845d7 100644 --- a/src/cmdSwitches.js +++ b/src/cmdSwitches.js @@ -9,7 +9,8 @@ const presets = { module.exports = () => { let c = {}; - for (const x of ('base,' + (oaConfig.cmdPreset || 'perf')).split(',').reduce((a, x) => a.concat(presets[x]?.split(' ')), [])) { + const customFlags = oaConfig.customFlags ? oaConfig.customFlags.split(' ') : []; + for (const x of ('base,' + (oaConfig.cmdPreset || 'perf')).split(',').reduce((a, x) => a.concat(presets[x]?.split(' ')), customFlags)) { if (!x) continue; const [ k, v ] = x.split('='); From ee01ed330d188eed68afa2e7291f633d0aca2500 Mon Sep 17 00:00:00 2001 From: DreamingCodes Date: Thu, 27 Apr 2023 23:59:02 +0200 Subject: [PATCH 3/3] Revert "config: increased height to fit custom flags" This reverts commit 7b40a115d9ee8bbfba9a20fdc0ea85ca973d87a2. --- src/config/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/index.js b/src/config/index.js index 16416f367..713e5cfc9 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -10,7 +10,7 @@ exports.open = () => { win = require('../utils/win')({ width: 500, - height: 690 + height: 650 }, 'config'); win.on('closed', () => {