From 9e73955119d3a36f9dc24ce2e6bbf27c7303cdd2 Mon Sep 17 00:00:00 2001 From: 21pages Date: Fri, 17 Mar 2023 15:37:24 +0800 Subject: [PATCH] fix codec menu Signed-off-by: 21pages --- flutter/lib/desktop/widgets/remote_toolbar.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flutter/lib/desktop/widgets/remote_toolbar.dart b/flutter/lib/desktop/widgets/remote_toolbar.dart index edf04b15a..c61da5f1b 100644 --- a/flutter/lib/desktop/widgets/remote_toolbar.dart +++ b/flutter/lib/desktop/widgets/remote_toolbar.dart @@ -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( child: Text(translate('H265')), value: 'h265', groupValue: groupValue, - onChanged: onChanged, + onChanged: codecs[1] ? onChanged : null, ffi: widget.ffi, ), ]);