mod:不自动清除缓存(可能解决iOS白屏问题)

This commit is contained in:
orz12
2024-05-20 16:24:34 +08:00
parent 074bf03946
commit c26a011e9f
2 changed files with 2 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ void main() async {
WidgetsFlutterBinding.ensureInitialized(); WidgetsFlutterBinding.ensureInitialized();
MediaKit.ensureInitialized(); MediaKit.ensureInitialized();
await GStrorage.init(); await GStrorage.init();
if (GStrorage.setting.get(SettingBoxKey.autoClearCache, defaultValue: true)) { if (GStrorage.setting.get(SettingBoxKey.autoClearCache, defaultValue: false)) {
await CacheManage.clearLibraryCache(); await CacheManage.clearLibraryCache();
} }
if (GStrorage.setting if (GStrorage.setting

View File

@@ -304,7 +304,7 @@ class _ExtraSettingState extends State<ExtraSetting> {
subTitle: '每次启动时清除缓存', subTitle: '每次启动时清除缓存',
leading: Icon(Icons.auto_delete_outlined), leading: Icon(Icons.auto_delete_outlined),
setKey: SettingBoxKey.autoClearCache, setKey: SettingBoxKey.autoClearCache,
defaultVal: true, defaultVal: false,
), ),
const SetSwitchItem( const SetSwitchItem(
title: '检查更新', title: '检查更新',