improve code

This commit is contained in:
nyne
2024-10-02 16:45:25 +08:00
parent 63aa4ee8b0
commit 20dfbf5125
3 changed files with 17 additions and 3 deletions

View File

@@ -324,7 +324,7 @@ class DownloadManager {
where illust_id = ?;
''', [illust.illustId]);
for(var image in images) {
File(image["path"] as String).deleteIfExists();
File(image["path"] as String).deleteIgnoreError();
}
_db.execute('''
delete from images