diff --git a/plugins/more-alts/src/patches/sidebarPin.ts b/plugins/more-alts/src/patches/sidebarPin.ts index 835e792..1f0fba2 100644 --- a/plugins/more-alts/src/patches/sidebarPin.ts +++ b/plugins/more-alts/src/patches/sidebarPin.ts @@ -146,6 +146,12 @@ function patchTabsUI(getRows: () => SectionRow[], patches: (() => void)[]) { const sections = config.sections; const rows = getRows(); if (!rows.length || !sections) return; + + // createList is shared by every settings sub-page; scope to the + // top-level overview screen by call stack. + const stack = new Error().stack ?? ""; + if (!stack.includes("SettingsOverviewScreen")) return; + cacheRows(rows); const anchorIndex = sections.findIndex((x: any) => diff --git a/plugins/rose-plugs/src/patches/settings.ts b/plugins/rose-plugs/src/patches/settings.ts index dbd779c..e951150 100644 --- a/plugins/rose-plugs/src/patches/settings.ts +++ b/plugins/rose-plugs/src/patches/settings.ts @@ -162,6 +162,12 @@ function patchTabsUI(getRows: () => SectionRow[], patches: (() => void)[]) { const sections = config.sections; const rows = getRows(); if (!rows.length || !sections) return; + + // createList is shared by every settings sub-page; scope to the + // top-level overview screen by call stack. + const stack = new Error().stack ?? ""; + if (!stack.includes("SettingsOverviewScreen")) return; + cacheRows(rows); const anchorIndex = sections.findIndex((x: any) =>