Fix the tonemap box not hidden in software transcoding

a3872ff is not included in b3de4af

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
nyanmisaka
2025-10-02 17:30:06 +08:00
parent c3d1f78e15
commit f10573ff46

View File

@@ -471,19 +471,21 @@ export const Component = () => {
{(hardwareAccelType === 'none' || isHwaSelected) && (
<>
<FormControl>
<FormControlLabel
label={globalize.translate('EnableTonemapping')}
control={
<Checkbox
name='EnableTonemapping'
checked={config.EnableTonemapping}
onChange={onCheckboxChange}
/>
}
/>
<FormHelperText>{globalize.translate(isHwaSelected ? 'AllowTonemappingHelp' : 'AllowTonemappingSoftwareHelp')}</FormHelperText>
</FormControl>
{isHwaSelected && (
<FormControl>
<FormControlLabel
label={globalize.translate('EnableTonemapping')}
control={
<Checkbox
name='EnableTonemapping'
checked={config.EnableTonemapping}
onChange={onCheckboxChange}
/>
}
/>
<FormHelperText>{globalize.translate('AllowTonemappingHelp')}</FormHelperText>
</FormControl>
)}
<TextField
name='TonemappingAlgorithm'