From 49cc5c0bf759609092dc4032ce01dd3696b769b6 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Fri, 22 May 2026 19:47:11 -0400 Subject: [PATCH] BetterSettings: Drop dead section --- src/plugins/betterSettings/index.tsx | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/src/plugins/betterSettings/index.tsx b/src/plugins/betterSettings/index.tsx index 922609a89..3bbb4f494 100644 --- a/src/plugins/betterSettings/index.tsx +++ b/src/plugins/betterSettings/index.tsx @@ -6,7 +6,7 @@ import { definePluginSettings } from "@api/Settings"; import { disableStyle, enableStyle } from "@api/Styles"; -import { AchievementsIcon, AppsIcon, CreditCardIcon, EquicordIcon, GameControllerIcon, HammerAndChiselIcon, HammerIcon, MainSettingsIcon, PencilSparkleIcon, UserIcon } from "@components/Icons"; +import { AchievementsIcon, AppsIcon, CreditCardIcon, EquicordIcon, GameControllerIcon, HammerAndChiselIcon, MainSettingsIcon, PencilSparkleIcon, UserIcon } from "@components/Icons"; import { buildPluginMenuEntries, buildThemeMenuEntries } from "@equicordplugins/equicordToolbox/menu"; import { Devs } from "@utils/constants"; import { classNameFactory } from "@utils/css"; @@ -32,8 +32,7 @@ const SECTION_ICONS: Record = { activity_section: GameControllerIcon, developer_section: HammerAndChiselIcon, utility_section: MainSettingsIcon, - playgrounds_section: AchievementsIcon, - build_overrides_section: HammerIcon, + playgrounds: AchievementsIcon, }; const settings = definePluginSettings({ @@ -170,24 +169,12 @@ export default definePlugin({ find: "#{intl::USER_SETTINGS_ACTIONS_MENU_LABEL}", predicate: () => settings.store.organizeMenu, replacement: [ - { - match: /"clear-build-override"\)\]\}/, - replace: '$&,"build_overrides_section"' - }, { match: /children:\[(\i),null!=(\i).{0,30}\}\),(\i)\](?<=\1=(?:function|.{0,30}\.openUserSettings).+?)/, // TODO .{0,30}\.openUserSettings is stable compat replace: "children:$self.transformSettingsEntries([$1,$2,$3])", } ] }, - { - find: '},"design-systems")', - predicate: () => settings.store.organizeMenu, - replacement: { - match: /\},"playgrounds"\)/, - replace: '},"playgrounds_section")' - } - }, ], // This is the very outer layer of the entire ui, so we can't wrap this in an ErrorBoundary @@ -229,7 +216,7 @@ export default definePlugin({ {children} ); - } else if (key?.endsWith("_section") && (props.label ?? SECTION_NAMES[key])) { + } else if ((key?.endsWith("_section") || key === "playgrounds") && (props.label ?? SECTION_NAMES[key])) { const iconLeft = SECTION_ICONS[key]; const children: any = [].concat(props.children ?? []).flat(Infinity); const logoutItem = children.find(c => c?.key === "logout_sidebar_item");