mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-21 08:38:37 +00:00
mod: enable autoClearCache by def
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -31,7 +31,7 @@ void main() async {
|
|||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
MediaKit.ensureInitialized();
|
MediaKit.ensureInitialized();
|
||||||
await GStorage.init();
|
await GStorage.init();
|
||||||
if (GStorage.setting.get(SettingBoxKey.autoClearCache, defaultValue: false)) {
|
if (GStorage.setting.get(SettingBoxKey.autoClearCache, defaultValue: true)) {
|
||||||
await CacheManage.clearLibraryCache();
|
await CacheManage.clearLibraryCache();
|
||||||
}
|
}
|
||||||
if (GStorage.setting
|
if (GStorage.setting
|
||||||
|
|||||||
@@ -2450,7 +2450,7 @@ List<SettingsModel> get extraSettings => [
|
|||||||
subtitle: '每次启动时清除缓存',
|
subtitle: '每次启动时清除缓存',
|
||||||
leading: const Icon(Icons.auto_delete_outlined),
|
leading: const Icon(Icons.auto_delete_outlined),
|
||||||
setKey: SettingBoxKey.autoClearCache,
|
setKey: SettingBoxKey.autoClearCache,
|
||||||
defaultVal: false,
|
defaultVal: true,
|
||||||
),
|
),
|
||||||
SettingsModel(
|
SettingsModel(
|
||||||
settingsType: SettingsType.sw1tch,
|
settingsType: SettingsType.sw1tch,
|
||||||
|
|||||||
Reference in New Issue
Block a user