From 03893ab69cb0703e054229dfc0fa9697da26b31e Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Sun, 15 Sep 2024 19:28:23 +0700 Subject: [PATCH] fix(ui/settings): register `Bunny` section to support bunny plugins --- src/core/ui/settings/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/core/ui/settings/index.ts b/src/core/ui/settings/index.ts index 342b13d..1210505 100644 --- a/src/core/ui/settings/index.ts +++ b/src/core/ui/settings/index.ts @@ -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