aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-05-10 23:14:04 +0200
committerGitHub <noreply@github.com>2023-05-10 23:14:04 +0200
commitcb385d1b280551eb16f1f9836a93cc9bcc43da15 (patch)
tree87897b84fe78d4d10686981c8bd1c31a5326b46d /src/components
parent195f1a032fc63d4fd35564a9d11f8ed4afbcac4d (diff)
downloadVencord-cb385d1b280551eb16f1f9836a93cc9bcc43da15.tar.gz
Vencord-cb385d1b280551eb16f1f9836a93cc9bcc43da15.tar.bz2
Vencord-cb385d1b280551eb16f1f9836a93cc9bcc43da15.zip
New Plugin: Translate (#1089)
Co-authored-by: Nuckyz <61953774+Nuckyz@users.noreply.github.com>
Diffstat (limited to 'src/components')
-rw-r--r--src/components/PluginSettings/PluginModal.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/PluginSettings/PluginModal.tsx b/src/components/PluginSettings/PluginModal.tsx
index c502873..1818a8b 100644
--- a/src/components/PluginSettings/PluginModal.tsx
+++ b/src/components/PluginSettings/PluginModal.tsx
@@ -129,6 +129,8 @@ export default function PluginModal({ plugin, onRestartNeeded, onClose, transiti
return <Forms.FormText>There are no settings for this plugin.</Forms.FormText>;
} else {
const options = Object.entries(plugin.options).map(([key, setting]) => {
+ if (setting.hidden) return null;
+
function onChange(newValue: any) {
setTempSettings(s => ({ ...s, [key]: newValue }));
}