mod: enable autoClearCache by def

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-12 15:55:09 +08:00
parent c13063b230
commit 71e7219084
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -2450,7 +2450,7 @@ List<SettingsModel> get extraSettings => [
subtitle: '每次启动时清除缓存',
leading: const Icon(Icons.auto_delete_outlined),
setKey: SettingBoxKey.autoClearCache,
defaultVal: false,
defaultVal: true,
),
SettingsModel(
settingsType: SettingsType.sw1tch,