Skip to content

Commit f10573f

Browse files
committed
Fix the tonemap box not hidden in software transcoding
a3872ff is not included in b3de4af Signed-off-by: nyanmisaka <nst799610810@gmail.com>
1 parent c3d1f78 commit f10573f

1 file changed

Lines changed: 15 additions & 13 deletions

File tree

src/apps/dashboard/routes/playback/transcoding.tsx

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -471,19 +471,21 @@ export const Component = () => {
471471

472472
{(hardwareAccelType === 'none' || isHwaSelected) && (
473473
<>
474-
<FormControl>
475-
<FormControlLabel
476-
label={globalize.translate('EnableTonemapping')}
477-
control={
478-
<Checkbox
479-
name='EnableTonemapping'
480-
checked={config.EnableTonemapping}
481-
onChange={onCheckboxChange}
482-
/>
483-
}
484-
/>
485-
<FormHelperText>{globalize.translate(isHwaSelected ? 'AllowTonemappingHelp' : 'AllowTonemappingSoftwareHelp')}</FormHelperText>
486-
</FormControl>
474+
{isHwaSelected && (
475+
<FormControl>
476+
<FormControlLabel
477+
label={globalize.translate('EnableTonemapping')}
478+
control={
479+
<Checkbox
480+
name='EnableTonemapping'
481+
checked={config.EnableTonemapping}
482+
onChange={onCheckboxChange}
483+
/>
484+
}
485+
/>
486+
<FormHelperText>{globalize.translate('AllowTonemappingHelp')}</FormHelperText>
487+
</FormControl>
488+
)}
487489

488490
<TextField
489491
name='TonemappingAlgorithm'

0 commit comments

Comments
 (0)