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

@ -68,7 +68,7 @@ namespace Flow.Launcher.ViewModel
{
OnPropertyChanged(nameof(Image));
});
}
}
Settings = settings;
}
@ -101,7 +101,7 @@ namespace Flow.Launcher.ViewModel
catch (Exception 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;
}
}