Fix delete download not working

This commit is contained in:
FooIbar authored and tarsin committed 2023-07-20 19:00:57 +08:00
1 parent ee504e3361
commit 31dcd349df
1 file changed
+2 -2
@@ -761,12 +761,12 @@ class DownloadsScene :
}
lifecycleScope.launchIO {
// Delete
DownloadManager.deleteRangeDownload(mGidList)
// Delete image files
val checked = mBuilder.isChecked
Settings.removeImageFiles = checked
if (checked) {
// Delete
DownloadManager.deleteRangeDownload(mGidList)
val files = arrayOfNulls<UniFile>(mDownloadInfoList.size)
for ((i, info) in mDownloadInfoList.withIndex()) {
// Put file