BetterSettings: fix menu organisation (#3793)

This commit is contained in:
thororen 2025-11-22 09:58:31 -05:00 committed by GitHub
parent eb5a42dd87
commit a824452333
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
},
{