Skip to content

Fix #1400: Check if the user-defined cache folder is empty before deleting it - #1401

Merged
NickeManarin merged 1 commit into
NickeManarin:devfrom
fz0000:dev
Jul 13, 2025
Merged

NickeManarin merged 1 commit into
NickeManarin:devfrom
fz0000:dev

Conversation

@fz0000

@fz0000 fz0000 commented Jul 13, 2025

Copy link
Copy Markdown
Contributor

Fix #1400.

The self-contained app will extract .dll files to the %temp% folder. As a result, the app will crash when trying to delete them on exit, because these dll files remain locked by the running process and cannot be accessed or deleted.

Additionally, directly deleting the cache folder is unsafe, since users might have configured it to an important location—such as the Documents folder or D:\draft_files—which may contain other valuable temporary documents or files.

@NickeManarin
NickeManarin merged commit d5648fc into NickeManarin:dev Jul 13, 2025
@NickeManarin

Copy link
Copy Markdown
Owner

Thank you!

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