Merge pull request #3693 from 21pages/fix

fix codec menu
This commit is contained in:
RustDesk 2023-03-17 15:40:08 +08:00 committed by GitHub
commit 09c2fc9d7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1404,14 +1404,14 @@ class _DisplayMenuState extends State<_DisplayMenu> {
child: Text(translate('H264')),
value: 'h264',
groupValue: groupValue,
onChanged: onChanged,
onChanged: codecs[0] ? onChanged : null,
ffi: widget.ffi,
),
_RadioMenuButton<String>(
child: Text(translate('H265')),
value: 'h265',
groupValue: groupValue,
onChanged: onChanged,
onChanged: codecs[1] ? onChanged : null,
ffi: widget.ffi,
),
]);