we need to set the Source anyway

This commit is contained in:
Paddy Xu
2017-06-02 20:12:19 +03:00
parent 00c98acee6
commit ce8cfacee1

View File

@@ -35,10 +35,7 @@ namespace QuickLook.Plugin.ImageViewer
private void LoadImage(string path)
{
if (Path.GetExtension(path).ToLower() == ".gif")
{
AnimationBehavior.SetSourceUri(viewPanelImage, new Uri(path));
return;
}
using (var image = new MagickImage(path))
{