From ef62ae9393bb24ab10427f0c196bd995dc5145cc Mon Sep 17 00:00:00 2001 From: Liam Rooney Date: Fri, 5 Jun 2026 13:43:41 -0700 Subject: [PATCH] correctly handle enable/disable feature flags from launch args modal --- src/main/startup.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/startup.ts b/src/main/startup.ts index f03c5da35..2e2dd9c2f 100644 --- a/src/main/startup.ts +++ b/src/main/startup.ts @@ -78,7 +78,13 @@ function init() { if (eqIndex !== -1) { const key = cleanArg.slice(2, eqIndex); const value = cleanArg.slice(eqIndex + 1); - app.commandLine.appendSwitch(key, value); + if (key === "enable-features") { + value.split(",").forEach(feature => enabledFeatures.add(feature)); + } else if (key === "disable-features") { + value.split(",").forEach(feature => disabledFeatures.add(feature)); + } else { + app.commandLine.appendSwitch(key, value); + } } else { app.commandLine.appendSwitch(cleanArg.slice(2)); }