fix(ui/settings): register Bunny section to support bunny plugins

This commit is contained in:
PalmDevs 2024-09-15 19:28:23 +07:00
parent ee3e53f943
commit 03893ab69c
No known key found for this signature in database
GPG key ID: 81476AE7B70A0133

View file

@ -10,6 +10,7 @@ import { version } from "bunny-build-info";
export { PyoncordIcon };
export default function initSettings() {
registerSection({
name: Strings.BUNNY,
items: [
@ -51,6 +52,12 @@ export default function initSettings() {
}
]
});
// Retain compatibility with plugins which inject into this section
registerSection({
name: "Bunny",
items: []
})
// Compat for plugins which injects into the settings
// Flaw: in the old UI, this will be displayed anyway with no items