Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix handling of files to delete during delete Gallery operation #5213

Merged
merged 3 commits into from
Sep 5, 2024

Conversation

WithoutPants
Copy link
Collaborator

Resolves #5048

When deleting a gallery, the images are destroyed only if they do not exist in another gallery. It does this regardless of how many files the image has.

This change adds an additional check so that if the image has multiple files, then it removes the file in the folder/zip file only and does not remove the image.

@WithoutPants WithoutPants added the bug Something isn't working label Sep 4, 2024
@WithoutPants WithoutPants added this to the Version 0.27.0 milestone Sep 4, 2024
@WithoutPants WithoutPants merged commit ad17e7d into stashapp:develop Sep 5, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report] Deleting folder galleries doesn't delete image files if zip file also contains the images.
1 participant