mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Fix bug
This commit is contained in:
@@ -234,7 +234,7 @@ class ImageCaches {
|
|||||||
Future<void> updateSize({bool clear = false}) async {
|
Future<void> updateSize({bool clear = false}) async {
|
||||||
if (clear) await _removeUnexist();
|
if (clear) await _removeUnexist();
|
||||||
final re = await _db!.rawQuery("SELECT SUM(size) AS sizes FROM images;");
|
final re = await _db!.rawQuery("SELECT SUM(size) AS sizes FROM images;");
|
||||||
_size = re.isEmpty ? 0 : re[0]["sizes"] as int;
|
_size = re.isEmpty ? 0 : ((re[0]["sizes"] as int?) ?? 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> clear() async {
|
Future<void> clear() async {
|
||||||
|
|||||||
Reference in New Issue
Block a user