load illust with id; context menu

This commit is contained in:
wgh19
2024-05-14 22:15:05 +08:00
parent faa857b814
commit a8b0495fc6
6 changed files with 151 additions and 66 deletions

View File

@@ -233,6 +233,7 @@ class DownloadManager {
}
void addDownloadingTask(Illust illust) {
if(illust.downloaded || illust.downloading) return;
var task = DownloadingTask(illust, receiveBytesCallback: receiveBytes, onCompleted: (task) {
saveInfo(illust, task.imagePaths);
tasks.remove(task);