mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Merge pull request #60 from cxfksword/master
Fix Everything not handle .ico image type
This commit is contained in:
commit
305fc52e73
3 changed files with 4 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ namespace Wox.Plugin.Everything
|
|||
{
|
||||
Wox.Plugin.PluginInitContext context;
|
||||
EverythingAPI api = new EverythingAPI();
|
||||
private static List<string> imageExts = new List<string>() { ".png", ".jpg", ".jpeg", ".gif", ".bmp", ".tiff" };
|
||||
private static List<string> imageExts = new List<string>() { ".png", ".jpg", ".jpeg", ".gif", ".bmp", ".tiff", ".ico" };
|
||||
|
||||
public List<Result> Query(Query query)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -89,6 +89,8 @@ namespace Wox.Infrastructure
|
|||
Instance.UserSetting.WebSearches = Instance.UserSetting.LoadDefaultWebSearches();
|
||||
Instance.UserSetting.ProgramSources = Instance.UserSetting.LoadDefaultProgramSources();
|
||||
Instance.UserSetting.Hotkey = "Win + W";
|
||||
Instance.UserSetting.QueryBoxFont = FontFamily.GenericSansSerif.Name;
|
||||
Instance.UserSetting.ResultItemFont = FontFamily.GenericSansSerif.Name;
|
||||
}
|
||||
|
||||
public static CommonStorage Instance
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ namespace Wox
|
|||
public class ImagePathConverter : IMultiValueConverter
|
||||
{
|
||||
private static Dictionary<string, object> imageCache = new Dictionary<string, object>();
|
||||
private static List<string> imageExts = new List<string>() { ".png", ".jpg", ".jpeg", ".gif", ".bmp", ".tiff" };
|
||||
private static List<string> imageExts = new List<string>() { ".png", ".jpg", ".jpeg", ".gif", ".bmp", ".tiff", ".ico" };
|
||||
|
||||
private static ImageSource GetIcon(string fileName)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue