erickutcher / httpdownloader

HTTP(S) download manager that uses input/output completion ports (IOCP).
https://erickutcher.github.io/#HTTP_Downloader
571 stars 62 forks source link

Please correct remove operation #314

Open ags1234 opened 1 week ago

ags1234 commented 1 week ago

Scenario HD downloaded something. The file is in HD list, but was removed from disk with a file manager. User presses Del key to delete from the list.

Observed result The user is asked to download the file again, since it was not found on disk. So user's mind is set on deleting the file but in the process of deletion HD asks to convert the delete operation to a download operation. Moreover, if the user refuses redownload, the operation is terminated and the entry remains in the list.

Expected result User presses Del key on an entry in HD downloads list because they do not want that entry in the list. HD interprets it primarly as a delete from the list. User is asked if the file should also be deleted from the disk. If yes, the file is deleted from two places at once. If no, the file is deleted from the list only.

To keep things elegant and simple, Remove, Remove and delete and Delete should really be a single operation, accessible from a single key, no combination. Remove completed is useful, should stay.

erickutcher commented 1 week ago

I'd like to keep it the way it is because the Remove option will allow you to clean up the program's list without actually deleting the file. Likewise, if you want a history of what's been downloaded, but intend to delete files at a later point, then the Delete option will retain that history and delete the file from the system. And of course if you don't want a history of the downloaded file or the file itself, then Remove and Delete will erase it completely.