Return default image when loading UWP icon fail

This commit is contained in:
弘韬 张 2021-01-04 16:31:48 +08:00
parent fc015245b3
commit 6703e0d137

View file

@ -101,7 +101,7 @@ namespace Flow.Launcher.ViewModel
catch (Exception e) catch (Exception e)
{ {
Log.Exception($"|ResultViewModel.Image|IcoPath is empty and exception when calling Icon() for result <{Result.Title}> of plugin <{Result.PluginDirectory}>", e); Log.Exception($"|ResultViewModel.Image|IcoPath is empty and exception when calling Icon() for result <{Result.Title}> of plugin <{Result.PluginDirectory}>", e);
imagePath = Constant.MissingImgIcon; return ImageLoader.DefaultImage;
} }
} }