mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: 缓存清除提示错误
This commit is contained in:
@@ -164,11 +164,8 @@ class _AboutPageState extends State<AboutPage> {
|
|||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
var cleanStatus = await CacheManage().clearCacheAll();
|
await CacheManage().clearCacheAll();
|
||||||
if (cleanStatus) {
|
getCacheSize();
|
||||||
getCacheSize();
|
|
||||||
SmartDialog.showToast('清除成功');
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
title: const Text('清除缓存'),
|
title: const Text('清除缓存'),
|
||||||
subtitle: Text('图片及网络缓存 $cacheSize', style: subTitleStyle),
|
subtitle: Text('图片及网络缓存 $cacheSize', style: subTitleStyle),
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ class CacheManage {
|
|||||||
await clearLibraryCache();
|
await clearLibraryCache();
|
||||||
Timer(const Duration(milliseconds: 500), () {
|
Timer(const Duration(milliseconds: 500), () {
|
||||||
SmartDialog.dismiss().then((res) {
|
SmartDialog.dismiss().then((res) {
|
||||||
SmartDialog.showToast('清除完成');
|
SmartDialog.showToast('清除成功');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user