From cb385d1b280551eb16f1f9836a93cc9bcc43da15 Mon Sep 17 00:00:00 2001 From: V Date: Wed, 10 May 2023 23:14:04 +0200 Subject: New Plugin: Translate (#1089) Co-authored-by: Nuckyz <61953774+Nuckyz@users.noreply.github.com> --- src/components/PluginSettings/PluginModal.tsx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/components/PluginSettings') 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 There are no settings for this plugin.; } else { const options = Object.entries(plugin.options).map(([key, setting]) => { + if (setting.hidden) return null; + function onChange(newValue: any) { setTempSettings(s => ({ ...s, [key]: newValue })); } -- cgit