mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 00:28:18 +08:00
fix: clearLibraryCache改为static
This commit is contained in:
@@ -134,7 +134,7 @@ class CacheManage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 清除 Library/Caches 目录及文件缓存
|
// 清除 Library/Caches 目录及文件缓存
|
||||||
Future clearLibraryCache() async {
|
static Future clearLibraryCache() async {
|
||||||
var appDocDir = await getTemporaryDirectory();
|
var appDocDir = await getTemporaryDirectory();
|
||||||
if (appDocDir.existsSync()) {
|
if (appDocDir.existsSync()) {
|
||||||
await appDocDir.delete(recursive: true);
|
await appDocDir.delete(recursive: true);
|
||||||
|
|||||||
Reference in New Issue
Block a user