mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 12:18:50 +02:00
Fix not handle .ico image type
This commit is contained in:
@@ -11,7 +11,7 @@ namespace Wox.Plugin.Everything
|
|||||||
{
|
{
|
||||||
Wox.Plugin.PluginInitContext context;
|
Wox.Plugin.PluginInitContext context;
|
||||||
EverythingAPI api = new EverythingAPI();
|
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)
|
public List<Result> Query(Query query)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ namespace Wox
|
|||||||
public class ImagePathConverter : IMultiValueConverter
|
public class ImagePathConverter : IMultiValueConverter
|
||||||
{
|
{
|
||||||
private static Dictionary<string, object> imageCache = new Dictionary<string, object>();
|
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)
|
private static ImageSource GetIcon(string fileName)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user