File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -802,7 +802,9 @@ await CoreApplication.MainView.DispatcherQueue.EnqueueAsync(async () =>
802
802
var matchingStorageFolder = ( StorageFolder ) matchingStorageItem ?? await GetFolderFromPathAsync ( item . ItemPath ) ;
803
803
if ( matchingStorageFolder != null )
804
804
{
805
- using var Thumbnail = await matchingStorageFolder . GetThumbnailAsync ( ThumbnailMode . ListView , thumbnailSize , ThumbnailOptions . ReturnOnlyIfCached ) ;
805
+ var mode = thumbnailSize < 80 ? ThumbnailMode . ListView : ThumbnailMode . SingleItem ;
806
+
807
+ using var Thumbnail = await matchingStorageFolder . GetThumbnailAsync ( mode , thumbnailSize , ThumbnailOptions . UseCurrentScale ) ;
806
808
if ( ! ( Thumbnail == null || Thumbnail . Size == 0 || Thumbnail . OriginalHeight == 0 || Thumbnail . OriginalWidth == 0 ) )
807
809
{
808
810
await CoreApplication . MainView . DispatcherQueue . EnqueueAsync ( async ( ) =>
You can’t perform that action at this time.
0 commit comments