From a824452333148e436daa72040194264bef809e65 Mon Sep 17 00:00:00 2001 From: thororen <78185467+thororen1234@users.noreply.github.com> Date: Sat, 22 Nov 2025 09:58:31 -0500 Subject: [PATCH] BetterSettings: fix menu organisation (#3793) --- src/plugins/betterSettings/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/betterSettings/index.tsx b/src/plugins/betterSettings/index.tsx index be6b017d..ab2700e7 100644 --- a/src/plugins/betterSettings/index.tsx +++ b/src/plugins/betterSettings/index.tsx @@ -124,8 +124,8 @@ export default definePlugin({ find: "#{intl::USER_SETTINGS_ACTIONS_MENU_LABEL}", replacement: [ { - match: /=\[\];return (\i)(?=\.forEach)/, - replace: "=$self.wrapMap([]);return $self.transformSettingsEntries($1)", + match: /=\[\];if\((\i)(?=\.forEach)/, + replace: "=$self.wrapMap([]);if($self.transformSettingsEntries($1)", predicate: () => settings.store.organizeMenu }, {