fix(plugins): append settings section at bottom of list

This commit is contained in:
Rosie Val 2026-08-22 12:18:28 -04:00
parent 7cb147fe88
commit 74a3aeac2d
2 changed files with 2 additions and 22 deletions

View file

@ -154,17 +154,7 @@ function patchTabsUI(getRows: () => SectionRow[], patches: (() => void)[]) {
cacheRows(rows);
const anchorIndex = sections.findIndex((x: any) =>
["Bunny", "Revenge", "Kettu", "Vencore", "ShiggyCord"].some(
(mod) => x.label === mod && x.title === mod
)
);
sections.splice(
anchorIndex >= 0 ? anchorIndex + 1 : 0,
0,
{ label: SECTION_LABEL, title: SECTION_TITLE, settings: rows.map((r) => r.key) }
);
sections.push({ label: SECTION_LABEL, title: SECTION_TITLE, settings: rows.map((r) => r.key) });
})
);
} catch {

View file

@ -170,17 +170,7 @@ function patchTabsUI(getRows: () => SectionRow[], patches: (() => void)[]) {
cacheRows(rows);
const anchorIndex = sections.findIndex((x: any) =>
["Bunny", "Revenge", "Kettu", "Vencore", "ShiggyCord"].some(
(mod) => x.label === mod && x.title === mod
)
);
sections.splice(
anchorIndex >= 0 ? anchorIndex + 1 : 0,
0,
{ label: SECTION_LABEL, title: SECTION_TITLE, settings: rows.map((r) => r.key) }
);
sections.push({ label: SECTION_LABEL, title: SECTION_TITLE, settings: rows.map((r) => r.key) });
})
);
} catch {