aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-05-11 02:38:59 +0200
committerV <vendicated@riseup.net>2023-05-11 02:38:59 +0200
commite50c2fafa5ba55f3c71968971303c102e11cdbe5 (patch)
treea163874e6be0bae915900339e3303be3735dcf44 /src
parent6e3cafce42ea4eee7e1103225ebe5cb9931967e1 (diff)
downloadVencord-e50c2fafa5ba55f3c71968971303c102e11cdbe5.tar.gz
Vencord-e50c2fafa5ba55f3c71968971303c102e11cdbe5.tar.bz2
Vencord-e50c2fafa5ba55f3c71968971303c102e11cdbe5.zip
Settings > Plugins: Hide API plugins
Diffstat (limited to 'src')
-rw-r--r--src/components/PluginSettings/index.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/PluginSettings/index.tsx b/src/components/PluginSettings/index.tsx
index 7679c01..3fb9bb4 100644
--- a/src/components/PluginSettings/index.tsx
+++ b/src/components/PluginSettings/index.tsx
@@ -260,6 +260,9 @@ export default ErrorBoundary.wrap(function PluginSettings() {
requiredPlugins = [];
for (const p of sortedPlugins) {
+ if (!p.options && p.name.endsWith("API") && searchValue.value !== "API")
+ continue;
+
if (!pluginFilter(p)) continue;
const isRequired = p.required || depMap[p.name]?.some(d => settings.plugins[d].enabled);