diff options
author | V <vendicated@riseup.net> | 2023-05-12 01:40:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-12 01:40:43 +0200 |
commit | 5c5b009c4180b73603a9c3a6c6663f889a2e2062 (patch) | |
tree | 9f586ff1e4491bbd8d7ac046d60bbae081d1d6f8 /src/plugins | |
parent | 0c54b1fa1d8f9d858baf912bb4b1efd9d3c0ec93 (diff) | |
download | Vencord-5c5b009c4180b73603a9c3a6c6663f889a2e2062.tar.gz Vencord-5c5b009c4180b73603a9c3a6c6663f889a2e2062.tar.bz2 Vencord-5c5b009c4180b73603a9c3a6c6663f889a2e2062.zip |
Settings: Fix resetting scroll/search when getting a ping (#1106)
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/settings.tsx | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/plugins/settings.tsx b/src/plugins/settings.tsx index c1dd315..2201ece 100644 --- a/src/plugins/settings.tsx +++ b/src/plugins/settings.tsx @@ -18,17 +18,13 @@ import { addContextMenuPatch } from "@api/ContextMenu"; import { Settings } from "@api/Settings"; -import PatchHelper from "@components/PatchHelper"; import { Devs } from "@utils/constants"; import { Logger } from "@utils/Logger"; -import { LazyComponent } from "@utils/react"; import definePlugin, { OptionType } from "@utils/types"; -import { SettingsRouter } from "@webpack/common"; +import { React, SettingsRouter } from "@webpack/common"; import gitHash from "~git-hash"; -const SettingsComponent = LazyComponent(() => require("../components/VencordSettings").default); - export default definePlugin({ name: "Settings", description: "Adds Settings UI and debug info", @@ -95,37 +91,37 @@ export default definePlugin({ { section: "VencordSettings", label: "Vencord", - element: () => <SettingsComponent tab="VencordSettings" /> + element: require("@components/VencordSettings/VencordTab").default }, { section: "VencordPlugins", label: "Plugins", - element: () => <SettingsComponent tab="VencordPlugins" />, + element: require("@components/VencordSettings/PluginsTab").default, }, { section: "VencordThemes", label: "Themes", - element: () => <SettingsComponent tab="VencordThemes" />, + element: require("@components/VencordSettings/ThemesTab").default, }, !IS_WEB && { section: "VencordUpdater", label: "Updater", - element: () => <SettingsComponent tab="VencordUpdater" />, + element: require("@components/VencordSettings/UpdaterTab").default, }, { section: "VencordCloud", label: "Cloud", - element: () => <SettingsComponent tab="VencordCloud" />, + element: require("@components/VencordSettings/CloudTab").default, }, { section: "VencordSettingsSync", label: "Backup & Restore", - element: () => <SettingsComponent tab="VencordSettingsSync" />, + element: require("@components/VencordSettings/BackupAndRestoreTab").default, }, IS_DEV && { section: "VencordPatchHelper", label: "Patch Helper", - element: PatchHelper!, + element: require("@components/VencordSettings/PatchHelperTab").default, }, IS_VENCORD_DESKTOP && { section: "VencordDesktop", |