Skip to content

Commit

Permalink
mod:不自动清除缓存(可能解决iOS白屏问题)
Browse files Browse the repository at this point in the history
  • Loading branch information
orz12 committed May 20, 2024
1 parent 074bf03 commit c26a011
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void main() async {
WidgetsFlutterBinding.ensureInitialized();
MediaKit.ensureInitialized();
await GStrorage.init();
if (GStrorage.setting.get(SettingBoxKey.autoClearCache, defaultValue: true)) {
if (GStrorage.setting.get(SettingBoxKey.autoClearCache, defaultValue: false)) {
await CacheManage.clearLibraryCache();
}
if (GStrorage.setting
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/setting/extra_setting.dart
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ class _ExtraSettingState extends State<ExtraSetting> {
subTitle: '每次启动时清除缓存',
leading: Icon(Icons.auto_delete_outlined),
setKey: SettingBoxKey.autoClearCache,
defaultVal: true,
defaultVal: false,
),
const SetSwitchItem(
title: '检查更新',
Expand Down

0 comments on commit c26a011

Please sign in to comment.