Page MenuHome

Fix T94692: Show Cached OneDrive Thumbnails
ClosedPublic

Authored by Harley Acheson (harley) on Jan 26 2022, 11:18 PM.

Details

Summary

When OneDrive files are offline, show preexisting thumbnails.


D11101: Fix T87621: Win32 Do Not Create Preview Thumbnails for Offline Files made it so that offline OneDrive files are not thumbnailed. This is because the act of creating a thumbnail will force the item to be brought online, which can be a lengthy process.

But that solution was a bit overzealous. It also made it so that offline files would not show thumbnails, even if they already exist. This patch changes that so any existing thumbnail will be shown even if a new one will not be created when offline. This means you can bring your files online once, let thumbnails be created, then take them offline and still get previews to help indicate the contents.

Diff Detail

Repository
rB Blender

Event Timeline

Thumbnail loading from the drive shouldn't be done in the main thread, so the IMB_thumb_read() call should be done inside filelist_cache_preview_runf().

Julian Eisel (Severin) requested changes to this revision.Jan 27 2022, 3:06 PM
This revision now requires changes to proceed.Jan 27 2022, 3:06 PM

Thumbnail loading from the drive shouldn't be done in the main thread, so the IMB_thumb_read() call should be done inside filelist_cache_preview_runf().

Thanks! I think I have a version of this patch that did that, but wasn’t sure which was better.

@Julian Eisel (Severin) - Thumbnail loading...should be done inside filelist_cache_preview_runf().

Yes, this version does that. Just had to pass the file attributes along, which could come in handy.

@Julian Eisel (Severin) - Would be nice to get this in for 3.2

This revision is now accepted and ready to land.Mar 11 2022, 12:00 PM