mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-04 03:49:07 +08:00
Move check for png thubmnail loading priority
This commit is contained in:
parent
ef944a234f
commit
645e798d97
@ -124,14 +124,15 @@ namespace Peek.FilePreviewer.Previewers
|
||||
{
|
||||
cancellationToken.ThrowIfCancellationRequested();
|
||||
|
||||
if (!IsFullImageLoaded)
|
||||
await Dispatcher.RunOnUiThread(async () =>
|
||||
{
|
||||
await Dispatcher.RunOnUiThread(async () =>
|
||||
cancellationToken.ThrowIfCancellationRequested();
|
||||
var thumbnail = await ThumbnailHelper.GetThumbnailAsync(File, _png_image_size);
|
||||
if (!IsFullImageLoaded)
|
||||
{
|
||||
cancellationToken.ThrowIfCancellationRequested();
|
||||
Preview = await ThumbnailHelper.GetThumbnailAsync(File, _png_image_size);
|
||||
});
|
||||
}
|
||||
Preview = thumbnail;
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user