diff --git a/NewPluginsModal.css b/NewPluginsModal.css index b26fcbf..ea7b7a3 100644 --- a/NewPluginsModal.css +++ b/NewPluginsModal.css @@ -10,7 +10,11 @@ list-style: disc; } -.vc-newPluginsManager-disable-wrapper, .vc-newPluginsManager-close > div { display: flex; } + +.vc-newPluginsManager-disable-wrapper { + display: flex; + margin: auto 0; +} diff --git a/NewPluginsModal.tsx b/NewPluginsModal.tsx index 43bc882..cf1e8eb 100644 --- a/NewPluginsModal.tsx +++ b/NewPluginsModal.tsx @@ -13,7 +13,7 @@ import { ChangeList } from "@utils/ChangeList"; import { classes, Margins } from "@utils/index"; import { closeModal, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalProps, ModalRoot, ModalSize, openModal } from "@utils/modal"; import { useForceUpdater } from "@utils/react"; -import { findByPropsLazy } from "@webpack"; +import { findByPropsLazy, findComponentByCodeLazy } from "@webpack"; import { Button, Flex, Forms, React, Text, Tooltip, useMemo } from "@webpack/common"; import { JSX } from "react"; @@ -24,7 +24,7 @@ import ErrorBoundary from "@components/ErrorBoundary"; const cl = classNameFactory("vc-plugins-"); -const { Checkbox } = findByPropsLazy("FormItem", "Button"); +const Checkbox = findComponentByCodeLazy(".checkboxWrapperDisabled:"); let hasSeen = false; @@ -136,7 +136,7 @@ export function NewPluginsModal({ modalProps, newPlugins, newSettings }: { modal
{ Settings.plugins.NewPluginsManager.enabled = !settings?.plugins?.NewPluginsManager?.enabled;