mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 04:37:30 +02:00
[Peek]Fix image aliasing (#32669)
This commit is contained in:
@@ -275,8 +275,8 @@ namespace Peek.FilePreviewer.Previewers
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
var bitmap = new BitmapImage();
|
var bitmap = new BitmapImage();
|
||||||
await bitmap.SetSourceAsync(stream.AsRandomAccessStream());
|
|
||||||
Preview = bitmap;
|
Preview = bitmap;
|
||||||
|
await bitmap.SetSourceAsync(stream.AsRandomAccessStream());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user