Skip to content

feat/option for auto-deleting archives once file is extracted#2156

Open
APimenta4 wants to merge 2 commits into
hydralauncher:mainfrom
APimenta4:feat/add-delete-after-extract-user-preference
Open

feat/option for auto-deleting archives once file is extracted#2156
APimenta4 wants to merge 2 commits into
hydralauncher:mainfrom
APimenta4:feat/add-delete-after-extract-user-preference

Conversation

@APimenta4
Copy link
Copy Markdown

When submitting this pull request, I confirm the following (please check the boxes):

  • I have read the Hydra documentation.
  • I have checked that there are no duplicate pull requests related to this request.
  • I have considered, and confirm that this submission is valuable to others.
  • I accept that this submission may not be used and the pull request may be closed at the discretion of the maintainers.

Fill in the PR content:

Implements #2112

Adds a new autoDeleteArchiveAfterExtraction user setting (defaults to false to ensure no new surprise behavior is added) for automatically deleting the downloaded game's zipped files

I made a table that cover the new behavior for all setting scenarios. I included auto extract and per-download extraction settings as they also have an impact on the outcome

Auto Extract (User Setting) Per-Download Extract Override Auto Delete Archive (User Setting) Result
ON - ON Archive is extracted + deleted automatically
ON - OFF Archive is extracted automatically, deletion prompt appears
ON OFF (overwrites) ON No automatic extraction, but deletion is automatic once user extracts manually
ON OFF (overwrites) OFF No automatic extraction, deletion prompt appears once user extracts manually
OFF - ON No automatic extraction, but deletion is automatic once user extracts manually
OFF - OFF No automatic extraction, deletion prompt appears once user extracts manually
OFF ON (overwrites) ON Archive is extracted + deleted automatically
OFF ON (overwrites) OFF Archive is extracted automatically, deletion prompt appears

Note: wrapped the deleteArchiveFile function in order to be able to be invoke the file deletion from the main process

Signed-off-by: AFONSO PIMENTA <afonsocpimenta04@gmail.com>
Signed-off-by: AFONSO PIMENTA <afonsocpimenta04@gmail.com>
@APimenta4 APimenta4 changed the title Feat/add delete after extract user preference Option for auto-deleting archives once file is extracted Apr 17, 2026
@sonarqubecloud
Copy link
Copy Markdown

@APimenta4 APimenta4 changed the title Option for auto-deleting archives once file is extracted Feat/Option for auto-deleting archives once file is extracted Apr 17, 2026
@APimenta4 APimenta4 changed the title Feat/Option for auto-deleting archives once file is extracted feat/option for auto-deleting archives once file is extracted Apr 17, 2026
@obfuscated-loop
Copy link
Copy Markdown

obfuscated-loop commented May 19, 2026

Hi,

Waiting for this to be merged, this is a very important feature for bulk-downloading as mentioned in #2112 👍

Can #2229 be reviewed so this isn't blocked?

Kind regards,
Jay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants