Fix: Fixed thumbails not loading in MTP devices
Resolved / Related Issues
To prevent extra work, all changes to the Files codebase must link to an approved issue marked as Ready to build. Please insert the issue number following the hashtag with the issue number that this Pull Request resolves.
- Closes #15084
Added back some code removed in #14423 which is necessary for loading thumbails in MTP.
Steps used to test these changes
Stability is a top priority for Files and all changes are required to go through testing before being merged into the repo. Please include a list of steps that you used to test this PR.
- Verify that icons are loaded in MTP devices
- Verify that loading on normal drives is not impacted
I was thinking we could take this a step forward with a single method in FileThumbnailHelper that would first attempt using the Win32 method, and StorageItem as a fallback.
Ok now thumbnails work in file list, in properties window and preview pane 💪
I'm concerned about maintaining two separate thumbnail systems (we did in the past, with much trouble).
Is there anything we can do with Win32Helper.GetIcon and avoid the need to use StorageThumbnail?
I'm concerned about maintaining two separate thumbnail systems (we did in the past, with much trouble). Is there anything we can do with
Win32Helper.GetIconand avoid the need to use StorageThumbnail?
@gave92 this is potentially solvable when we switch ShellViewModel to the new storage abstractions.