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(
|
||||
onTap: () async {
|
||||
var cleanStatus = await CacheManage().clearCacheAll();
|
||||
if (cleanStatus) {
|
||||
getCacheSize();
|
||||
SmartDialog.showToast('清除成功');
|
||||
}
|
||||
await CacheManage().clearCacheAll();
|
||||
getCacheSize();
|
||||
},
|
||||
title: const Text('清除缓存'),
|
||||
subtitle: Text('图片及网络缓存 $cacheSize', style: subTitleStyle),
|
||||
|
||||
@@ -101,7 +101,7 @@ class CacheManage {
|
||||
await clearLibraryCache();
|
||||
Timer(const Duration(milliseconds: 500), () {
|
||||
SmartDialog.dismiss().then((res) {
|
||||
SmartDialog.showToast('清除完成');
|
||||
SmartDialog.showToast('清除成功');
|
||||
});
|
||||
});
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user