Merge pull request #232 from allanpk716/V1.2.0

1,fix ImageLoader GetIcon() trigger FileNotFoundException when file not ...
This commit is contained in:
qianlifeng
2015-01-09 10:43:02 +08:00
8 changed files with 97 additions and 6 deletions

View File

@@ -37,6 +37,8 @@ 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);