diff --git a/src/plugins/customFolderIcons/index.tsx b/src/plugins/customFolderIcons/index.tsx index 5f19d0dd3..12c9e6bdf 100644 --- a/src/plugins/customFolderIcons/index.tsx +++ b/src/plugins/customFolderIcons/index.tsx @@ -10,6 +10,7 @@ import { Devs } from "@utils/constants"; import { closeModal, ModalContent, ModalHeader, ModalRoot, openModalLazy } from "@utils/modal"; import definePlugin from "@utils/types"; import { Button, Menu, Slider, TextInput, useState } from "@webpack/common"; +import settings from "./settings"; const DATA_STORE_NAME = "CFI_DATA"; interface folderIcon{ url: string, @@ -24,6 +25,7 @@ interface folderProp { } let folderData: folderStoredData; export default definePlugin({ + settings, start: async ()=>{ folderData = await DataStore.get(DATA_STORE_NAME).catch(e => handleUpdateError(e)) || {} as folderStoredData; }, diff --git a/src/plugins/customFolderIcons/settings.tsx b/src/plugins/customFolderIcons/settings.tsx new file mode 100644 index 000000000..00d041d9d --- /dev/null +++ b/src/plugins/customFolderIcons/settings.tsx @@ -0,0 +1,26 @@ +/* + * Vencord, a Discord client mod + * Copyright (c) 2024 Vendicated and contributors + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +import { definePluginSettings } from "@api/Settings"; +import { IPluginOptionComponentProps, OptionType } from "@utils/types"; + +const settings = definePluginSettings({ + folderIcons: { + type: OptionType.COMPONENT, + description: "guh", + component: props => <> + + + } +}); +export default settings; +function FolderIconsSettings(props: IPluginOptionComponentProps): JSX.Element { + return <>; +}