mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Fix clear image caches don't optimize the sqlite database
This commit is contained in:
@@ -270,6 +270,7 @@ class ImageCaches {
|
|||||||
offset += records.length;
|
offset += records.length;
|
||||||
} while (records.isNotEmpty);
|
} while (records.isNotEmpty);
|
||||||
await _db!.delete("images");
|
await _db!.delete("images");
|
||||||
|
await _optimize();
|
||||||
_size = 0;
|
_size = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user