mirror of
https://github.com/System-End/Vencord.git
synced 2026-04-19 22:05:11 +00:00
Settings: support disabled for boolean settings (#3876)
This commit is contained in:
parent
f7152a3982
commit
de019f7f17
1 changed files with 5 additions and 1 deletions
|
|
@ -41,7 +41,11 @@ export function BooleanSetting({ option, pluginSettings, definedSettings, id, on
|
|||
|
||||
return (
|
||||
<SettingsSection tag="label" name={id} description={option.description} error={error} inlineSetting>
|
||||
<Switch checked={state} onChange={handleChange} />
|
||||
<Switch
|
||||
checked={state}
|
||||
onChange={handleChange}
|
||||
disabled={option.disabled?.call(definedSettings) ?? false}
|
||||
/>
|
||||
</SettingsSection>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue