Change options description

This commit is contained in:
problematicconsumer
2024-01-13 16:16:49 +03:30
parent 1b6206e4dd
commit e0d434646c
8 changed files with 24 additions and 16 deletions

View File

@@ -160,8 +160,8 @@
}, },
"enableAnalytics": "Enable Analytics", "enableAnalytics": "Enable Analytics",
"enableAnalyticsMsg": "Give permission to collect analytics and send crash reports to improve the app", "enableAnalyticsMsg": "Give permission to collect analytics and send crash reports to improve the app",
"autoStart": "Start on Boot", "autoStart": "Start At Login",
"silentStart": "Silent Start", "silentStart": "Start Minimized",
"openWorkingDir": "Open Working Directory", "openWorkingDir": "Open Working Directory",
"ignoreBatteryOptimizations": "Disable Battery Optimization", "ignoreBatteryOptimizations": "Disable Battery Optimization",
"ignoreBatteryOptimizationsMsg": "Remove restrictions for optimal VPN performance", "ignoreBatteryOptimizationsMsg": "Remove restrictions for optimal VPN performance",
@@ -171,7 +171,8 @@
"sectionTitle": "Advanced", "sectionTitle": "Advanced",
"debugMode": "Debug Mode", "debugMode": "Debug Mode",
"debugModeMsg": "Restart the app for applying this change", "debugModeMsg": "Restart the app for applying this change",
"memoryLimit": "Memory Limit" "memoryLimit": "Memory Limit",
"memoryLimitMsg": "Enable if you're experiencing out of memory errors or frequent app crash"
}, },
"network": { "network": {
"perAppProxyPageTitle": "Per-app Proxy", "perAppProxyPageTitle": "Per-app Proxy",

View File

@@ -165,7 +165,8 @@
"debugModeMsg": "Reinicie la aplicación para aplicar este cambio.", "debugModeMsg": "Reinicie la aplicación para aplicar este cambio.",
"sectionTitle": "Avanzado", "sectionTitle": "Avanzado",
"debugMode": "Modo de depuración", "debugMode": "Modo de depuración",
"memoryLimit": "Limite de memoria" "memoryLimit": "Limite de memoria",
"memoryLimitMsg": "Habilítelo si experimenta errores de falta de memoria o fallas frecuentes de la aplicación"
}, },
"network": { "network": {
"perAppProxyModes": { "perAppProxyModes": {

View File

@@ -171,7 +171,8 @@
"sectionTitle": "پیشرفته", "sectionTitle": "پیشرفته",
"debugMode": "دیباگ مود", "debugMode": "دیباگ مود",
"debugModeMsg": "برای اعمال این تغییر اپ را ری‌استارت کنید", "debugModeMsg": "برای اعمال این تغییر اپ را ری‌استارت کنید",
"memoryLimit": "محدودیت مموری" "memoryLimit": "محدودیت مموری",
"memoryLimitMsg": "اگر با خطاهای کمبود حافظه یا خرابی مکرر برنامه مواجه شدید، فعال کنید"
}, },
"network": { "network": {
"perAppProxyPageTitle": "پراکسی برنامه‌ها", "perAppProxyPageTitle": "پراکسی برنامه‌ها",

View File

@@ -171,7 +171,8 @@
"sectionTitle": "Расширенные", "sectionTitle": "Расширенные",
"debugMode": "Режим отладки", "debugMode": "Режим отладки",
"debugModeMsg": "Чтобы применить изменения, перезапустите приложение.", "debugModeMsg": "Чтобы применить изменения, перезапустите приложение.",
"memoryLimit": "Ограничение памяти" "memoryLimit": "Ограничение памяти",
"memoryLimitMsg": "Включите, если у вас возникают ошибки нехватки памяти или частые сбои приложения."
}, },
"network": { "network": {
"perAppProxyPageTitle": "Раздельное проксирование", "perAppProxyPageTitle": "Раздельное проксирование",

View File

@@ -171,7 +171,8 @@
"sectionTitle": "Gelişmiş", "sectionTitle": "Gelişmiş",
"debugMode": "Hata ayıklama modu", "debugMode": "Hata ayıklama modu",
"debugModeMsg": "Bu değişikliği uygulamak için uygulamayı yeniden başlatın", "debugModeMsg": "Bu değişikliği uygulamak için uygulamayı yeniden başlatın",
"memoryLimit": "Bellek Sınırı" "memoryLimit": "Bellek Sınırı",
"memoryLimitMsg": "Yetersiz bellek hataları veya sık sık uygulama çökmesi yaşıyorsanız etkinleştirin"
}, },
"network": { "network": {
"perAppProxyPageTitle": "Uygulama başına Proxy", "perAppProxyPageTitle": "Uygulama başına Proxy",

View File

@@ -171,7 +171,8 @@
"sectionTitle": "高级选项", "sectionTitle": "高级选项",
"debugMode": "调试模式", "debugMode": "调试模式",
"debugModeMsg": "重新启动应用程序以应用此更改", "debugModeMsg": "重新启动应用程序以应用此更改",
"memoryLimit": "内存限制" "memoryLimit": "内存限制",
"memoryLimitMsg": "如果您遇到内存不足错误或频繁应用程序崩溃,请启用"
}, },
"network": { "network": {
"perAppProxyPageTitle": "分应用代理", "perAppProxyPageTitle": "分应用代理",

View File

@@ -63,6 +63,15 @@ class AdvancedSettingTiles extends HookConsumerWidget {
}, },
), ),
], ],
SwitchListTile(
title: Text(t.settings.advanced.memoryLimit),
subtitle: Text(t.settings.advanced.memoryLimitMsg),
value: !disableMemoryLimit,
secondary: const Icon(Icons.memory),
onChanged: (value) async {
await ref.read(disableMemoryLimitProvider.notifier).update(!value);
},
),
SwitchListTile( SwitchListTile(
title: Text(t.settings.advanced.debugMode), title: Text(t.settings.advanced.debugMode),
value: debug, value: debug,
@@ -90,13 +99,6 @@ class AdvancedSettingTiles extends HookConsumerWidget {
await ref.read(debugModeNotifierProvider.notifier).update(value); await ref.read(debugModeNotifierProvider.notifier).update(value);
}, },
), ),
SwitchListTile(
title: Text(t.settings.advanced.memoryLimit),
value: !disableMemoryLimit,
onChanged: (value) async {
await ref.read(disableMemoryLimitProvider.notifier).update(!value);
},
),
], ],
); );
} }

View File

@@ -22,7 +22,6 @@ class GeneralSettingTiles extends HookConsumerWidget {
return Column( return Column(
children: [ children: [
const LocalePrefTile(), const LocalePrefTile(),
const EnableAnalyticsPrefTile(),
ListTile( ListTile(
title: Text(t.settings.general.themeMode), title: Text(t.settings.general.themeMode),
subtitle: Text(themeMode.present(t)), subtitle: Text(themeMode.present(t)),
@@ -53,6 +52,7 @@ class GeneralSettingTiles extends HookConsumerWidget {
} }
}, },
), ),
const EnableAnalyticsPrefTile(),
if (Platform.isAndroid) if (Platform.isAndroid)
SwitchListTile( SwitchListTile(
title: Text(t.settings.general.dynamicNotification), title: Text(t.settings.general.dynamicNotification),