Skip to content

Commit

Permalink
chore: Modify the description of the setting
Browse files Browse the repository at this point in the history
  • Loading branch information
doraemonkeys committed Dec 30, 2024
1 parent 43b310c commit 4de96fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions flutter/wind_send/lib/language.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ mixin AppLocale {
static const String push = 'push';
static const String useThirdPartyFilePicker = 'useThirdPartyFilePicker';
static const String filePickerPackageNameHint = 'filePickerPackageNameHint';
static const String autoSelectShareDevice = 'autoSelectShareDevice';
static const String autoSelectShareSyncDevice = 'autoSelectShareSyncDevice';
static const String continueWithError = 'continueWithError';
static const String autoSelectShareSyncDeviceTip = 'selectShareSyncDeviceTip';
static const String getWIFIBSSIDTitle = 'getWIFIBSSIDTitle';
Expand Down Expand Up @@ -114,7 +114,7 @@ mixin AppLocale {
sendSuccess: '发送成功',
useThirdPartyFilePicker: '使用第三方文件选择器',
filePickerPackageNameHint: '请输入文件管理应用的包名',
autoSelectShareDevice: '根据WIFI自动选择分享设备',
autoSelectShareSyncDevice: '根据WIFI自动选择设备',
continueWithError: '出现错误还要继续吗',
autoSelectShareSyncDeviceTip: '此功能需要授予位置权限',
getWIFIBSSIDTitle: '授予精确定位权限',
Expand Down Expand Up @@ -178,7 +178,7 @@ mixin AppLocale {
useThirdPartyFilePicker: 'Use third party file picker',
filePickerPackageNameHint:
'Please enter the package name of the file manager app',
autoSelectShareDevice: 'Auto select share device by wifi info',
autoSelectShareSyncDevice: 'Auto select device by wifi info',
continueWithError: 'Continue with error?',
autoSelectShareSyncDeviceTip: 'This feature requires location permission',
getWIFIBSSIDTitle: 'Grant precise location permission',
Expand Down
7 changes: 4 additions & 3 deletions flutter/wind_send/lib/setting.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ class _SettingPageState extends State<SettingPage> {

SettingsTile autoSelectShareDeviceSetting(BuildContext context) {
return SettingsTile.switchTile(
title: Text(context.formatString(AppLocale.autoSelectShareDevice, [])),
title:
Text(context.formatString(AppLocale.autoSelectShareSyncDevice, [])),
leading: const Icon(Icons.wifi),
initialValue: autoSelectShareDeviceByBssid,
activeSwitchColor: Theme.of(context).colorScheme.primary,
Expand Down Expand Up @@ -119,8 +120,8 @@ class _SettingPageState extends State<SettingPage> {
showDialog(
context: context,
builder: (context) => AlertDialog(
title:
Text(context.formatString(AppLocale.autoSelectShareDevice, [])),
title: Text(
context.formatString(AppLocale.autoSelectShareSyncDevice, [])),
content: Text(jsonEncode(AppSharedCnfService.bssidDeviceNameMap)),
),
);
Expand Down

0 comments on commit 4de96fe

Please sign in to comment.