mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-21 03:15:14 +08:00
tweaks (#1562)
* opt: downloadImg use cache * opt: uin8 cast * non null ext
This commit is contained in:
committed by
GitHub
parent
43beb518f4
commit
c3fa976b26
@@ -57,7 +57,7 @@ abstract class CacheManage {
|
||||
value = value / 1024;
|
||||
}
|
||||
String size = value.toStringAsFixed(2);
|
||||
return size + unitArr.getOrElse(index, orElse: () => '');
|
||||
return size + (unitArr.getOrNull(index) ?? '');
|
||||
}
|
||||
|
||||
// 清除 Library/Caches 目录及文件缓存
|
||||
|
||||
Reference in New Issue
Block a user