diff --git a/Wox/ImagePathConverter.cs b/Wox/ImagePathConverter.cs index 2f7cb8154b..41d7543704 100644 --- a/Wox/ImagePathConverter.cs +++ b/Wox/ImagePathConverter.cs @@ -41,10 +41,10 @@ namespace Wox { return GetIcon(resolvedPath); } - else - { - return new BitmapImage(new Uri(resolvedPath)); - } + + if(!string.IsNullOrEmpty(path)) return new BitmapImage(new Uri(resolvedPath)); + + return null; } public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture) diff --git a/Wox/ResultPanel.xaml b/Wox/ResultPanel.xaml index b68df11cf2..70406144ec 100644 --- a/Wox/ResultPanel.xaml +++ b/Wox/ResultPanel.xaml @@ -11,7 +11,7 @@ - +