fix(arai2): cannot select file back after unselected (#2386)

This commit is contained in:
Aaron Liu
2025-05-23 15:35:01 +08:00
parent acffd984c1
commit 1a3c3311e6
2 changed files with 3 additions and 1 deletions

View File

@@ -245,6 +245,8 @@ func (a *aria2Client) SetFilesToDownload(ctx context.Context, handle *downloader
for _, arg := range args {
if !arg.Download {
delete(selected, arg.Index)
} else {
selected[arg.Index] = true
}
}