This commit is contained in:
rustdesk 2023-04-13 16:06:46 +08:00
parent 47b82150ee
commit a692038991

View File

@ -301,7 +301,7 @@ class _GeneralState extends State<_General> {
Widget audio(BuildContext context) {
String getDefault() {
if (Platform.isWindows) return 'System Sound';
if (Platform.isWindows) return translate('System Sound');
return '';
}
@ -322,7 +322,7 @@ class _GeneralState extends State<_General> {
return futureBuilder(future: () async {
List<String> devices = (await bind.mainGetSoundInputs()).toList();
if (Platform.isWindows) {
devices.insert(0, 'System Sound');
devices.insert(0, translate('System Sound'));
}
String current = await getValue();
return {'devices': devices, 'current': current};
@ -415,7 +415,7 @@ class _GeneralState extends State<_General> {
List<String> keys = langsMap.keys.toList();
List<String> values = langsMap.values.toList();
keys.insert(0, '');
values.insert(0, 'Default');
values.insert(0, translate('Default'));
String currentKey = data['lang']!;
if (!keys.contains(currentKey)) {
currentKey = '';