mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-14 23:21:29 +03:00
flutter desktop Codec Preference
This commit is contained in:
@@ -219,17 +219,12 @@ class _GeneralState extends State<_General> {
|
||||
}
|
||||
|
||||
Widget hwcodec() {
|
||||
return _futureBuilder(
|
||||
future: bind.mainHasHwcodec(),
|
||||
hasData: (data) {
|
||||
return Offstage(
|
||||
offstage: !(data as bool),
|
||||
child: _Card(title: 'Hardware Codec', children: [
|
||||
_OptionCheckBox(
|
||||
context, 'Enable hardware codec', 'enable-hwcodec'),
|
||||
]),
|
||||
);
|
||||
});
|
||||
return Offstage(
|
||||
offstage: !bind.mainHasHwcodec(),
|
||||
child: _Card(title: 'Hardware Codec', children: [
|
||||
_OptionCheckBox(context, 'Enable hardware codec', 'enable-hwcodec'),
|
||||
]),
|
||||
);
|
||||
}
|
||||
|
||||
Widget audio(BuildContext context) {
|
||||
|
||||
Reference in New Issue
Block a user