Merge pull request #230 from allanpk716/patch-1

FIx FileNotFoundException in GetIcon
This commit is contained in:
qianlifeng 2015-01-08 09:41:26 +08:00
commit 3143d0d8aa

View File

@ -38,6 +38,11 @@ namespace Wox.ImageLoader
private static ImageSource GetIcon(string fileName)
{
if (System.IO.File.Exists(fileName) == false)
{
return null;
}
Icon icon = GetFileIcon(fileName);
if (icon == null) icon = Icon.ExtractAssociatedIcon(fileName);