diff options
author | V <vendicated@riseup.net> | 2023-05-10 23:14:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-10 23:14:04 +0200 |
commit | cb385d1b280551eb16f1f9836a93cc9bcc43da15 (patch) | |
tree | 87897b84fe78d4d10686981c8bd1c31a5326b46d /src/components/PluginSettings/PluginModal.tsx | |
parent | 195f1a032fc63d4fd35564a9d11f8ed4afbcac4d (diff) | |
download | Vencord-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/PluginSettings/PluginModal.tsx')
-rw-r--r-- | src/components/PluginSettings/PluginModal.tsx | 2 |
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 })); } |