Skip to content

Fix: Fixed an issue where thumbnails didn't load for MTP devices#18238

Merged
yair100 merged 2 commits intomainfrom
ya/mtp
Mar 12, 2026
Merged

Fix: Fixed an issue where thumbnails didn't load for MTP devices#18238
yair100 merged 2 commits intomainfrom
ya/mtp

Conversation

@yair100
Copy link
Copy Markdown
Member

@yair100 yair100 commented Mar 11, 2026

Fixes #15084
Also fixes an issue where placeholder icons didn't display for folders enumerated with StorageItem.

Always use the dummy path when requesting icons so the shell resolves the generic icon from the extension alone (works for local, MTP, FTP, network, cloud, etc.). Remove dependency on FileExtensionHelpers in IconCacheService and simplify icon path selection to use dummy path + extension for files. Add a cached IIconCacheService instance in UniversalStorageEnumerator and preload PreloadedIconData for folder and file entries by calling GetIconAsync to improve icon availability/performance in the enumerator.
@yair100 yair100 changed the title Simplify icon path and preload icons Code Quality: Simplify icon path and preload icons Mar 11, 2026
@yair100 yair100 changed the title Code Quality: Simplify icon path and preload icons Fix: Fixed an issue where thumbnails didn't load for MTP devices Mar 11, 2026
@yair100 yair100 added the ready for review Pull requests that are ready for review label Mar 11, 2026
@yair100 yair100 requested a review from gave92 March 11, 2026 02:36
@yair100 yair100 added ready to merge Pull requests that are approved and ready to merge and removed ready for review Pull requests that are ready for review labels Mar 12, 2026
@yair100 yair100 merged commit 7f61dc1 into main Mar 12, 2026
9 checks passed
@yair100 yair100 deleted the ya/mtp branch March 12, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to merge Pull requests that are approved and ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Thumbnails don't load for MTP devices (Phones)

1 participant