From 58b016a9c0198780d16b302f654eb456e1b8effc Mon Sep 17 00:00:00 2001 From: cxfksword Date: Thu, 20 Mar 2014 10:01:00 +0800 Subject: [PATCH] Fix not handle .ico image type --- Plugins/Wox.Plugin.Everything/Main.cs | 2 +- Wox/ImagePathConverter.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/Wox.Plugin.Everything/Main.cs b/Plugins/Wox.Plugin.Everything/Main.cs index 29685b46c6..c29b3a530c 100644 --- a/Plugins/Wox.Plugin.Everything/Main.cs +++ b/Plugins/Wox.Plugin.Everything/Main.cs @@ -11,7 +11,7 @@ namespace Wox.Plugin.Everything { Wox.Plugin.PluginInitContext context; EverythingAPI api = new EverythingAPI(); - private static List imageExts = new List() { ".png", ".jpg", ".jpeg", ".gif", ".bmp", ".tiff" }; + private static List imageExts = new List() { ".png", ".jpg", ".jpeg", ".gif", ".bmp", ".tiff", ".ico" }; public List Query(Query query) { diff --git a/Wox/ImagePathConverter.cs b/Wox/ImagePathConverter.cs index 8b88f47c51..3db4550b5b 100644 --- a/Wox/ImagePathConverter.cs +++ b/Wox/ImagePathConverter.cs @@ -14,7 +14,7 @@ namespace Wox public class ImagePathConverter : IMultiValueConverter { private static Dictionary imageCache = new Dictionary(); - private static List imageExts = new List() { ".png", ".jpg", ".jpeg", ".gif", ".bmp", ".tiff" }; + private static List imageExts = new List() { ".png", ".jpg", ".jpeg", ".gif", ".bmp", ".tiff", ".ico" }; private static ImageSource GetIcon(string fileName) {