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

GH-3068 Fix icons overwriting each other if not needed #4085

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

Zetabite
Copy link
Contributor

@Zetabite Zetabite commented Sep 9, 2021

When importing icons, mmc will now create an icon, with the filename and the md5 hash of the file appeneded to it.
icon2.png becomes icon2_4190adsawewq.png or similar. In case a file with that name already exists, both files are checked on their md5sum, if they equal, the new file isnt imported. If the files have different checksums, the existing file becomes reevaluated (should only happen if someone purpoesfully adds a wrong hash to a file ) and written to the actual name it should have. ideally, that should never happen.

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.

1 participant