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 custom resource icons not showing up in FileSystem #73611

Closed

Conversation

Atlinx
Copy link
Contributor

@Atlinx Atlinx commented Feb 20, 2023

Fixes #32706.

Makes custom resource icons show up in FileSystem. This is implemented by having the editor resource preview generator also store icon information when a preview is generated. Since filesystem_dock.cpp already uses editor_resource_preview.h, only minor changes were needed to integrate this.

Can probably be backported to 3.x.

EDIT: Changes method signature so compat breaks

@Atlinx Atlinx requested review from a team as code owners February 20, 2023 03:43
@Atlinx Atlinx force-pushed the fix/32706_custom-resource-icons-new branch 2 times, most recently from 30ede28 to c6f6533 Compare February 20, 2023 03:52
@Atlinx Atlinx changed the title Make custom resource icons show up in FileSystem Fix custom resource icons not showing up in FileSystem Feb 20, 2023
@Atlinx Atlinx force-pushed the fix/32706_custom-resource-icons-new branch from c6f6533 to 3001d44 Compare February 20, 2023 03:55
Edited EditorResourcePreview to cache icons when generating previews for resources.
@YuriSizov
Copy link
Contributor

Can probably be backported to 3.x.

Well, it changes the signature of a callback method, so it cannot be backported. And we need to be careful about it in 4.x too.

@akien-mga
Copy link
Member

Superseded by #77932. Thanks for the contribution nevertheless!

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

Successfully merging this pull request may close these issues.

Custom resources don't use icon for file in filesystem
3 participants