VencordToolbox: don't subscribe to all settings

Also remove one indirection from useSettings
This commit is contained in:
Nuckyz 2024-03-07 13:06:08 -03:00
parent 102842d528
commit 1c1d82f9a8
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
2 changed files with 9 additions and 7 deletions

View file

@ -30,7 +30,7 @@ import type { ReactNode } from "react";
const HeaderBarIcon = findExportedComponentLazy("Icon", "Divider");
function VencordPopout(onClose: () => void) {
const { useQuickCss } = useSettings();
const { useQuickCss } = useSettings(["useQuickCss"]);
const pluginEntries = [] as ReactNode[];