feat: disable letter cache (#446)

Fixes #445
This commit is contained in:
lollipopkit🏳️‍⚧️
2024-07-03 19:55:33 +08:00
committed by GitHub
parent 4430045550
commit 6e428c91d1
18 changed files with 103 additions and 69 deletions

View File

@@ -156,6 +156,7 @@ class _SettingPageState extends State<SettingPage> {
Widget _buildSSH() {
return Column(
children: [
_buildLetterCache(),
_buildSSHWakeLock(),
_buildTermTheme(),
_buildFont(),
@@ -1178,4 +1179,16 @@ class _SettingPageState extends State<SettingPage> {
trailing: StoreSwitch(prop: _setting.betaTest),
);
}
Widget _buildLetterCache() {
return ListTile(
leading: const Icon(Bootstrap.input_cursor),
title: Text(l10n.letterCache),
subtitle: Text(
'${l10n.letterCacheTip}\n${l10n.needRestart}',
style: UIs.textGrey,
),
trailing: StoreSwitch(prop: _setting.letterCache),
);
}
}