We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 617d2f5 commit 35d96bdCopy full SHA for 35d96bd
Flow.Launcher/ViewModel/ResultViewModel.cs
@@ -227,8 +227,8 @@ private async Task LoadImageAsync()
227
228
private async Task LoadPreviewImageAsync()
229
{
230
- var imagePath = string.IsNullOrEmpty(Result.Preview.PreviewImagePath) ? Result.IcoPath : Result.Preview.PreviewImagePath;
231
- var iconDelegate = Result.Icon ?? Result.Preview.PreviewDelegate;
+ var imagePath = Result.Preview.PreviewImagePath ?? Result.IcoPath;
+ var iconDelegate = Result.Preview.PreviewDelegate ?? Result.Icon;
232
if (ImageLoader.CacheContainImage(imagePath, true))
233
234
previewImage = await LoadImageInternalAsync(imagePath, iconDelegate, true).ConfigureAwait(false);
0 commit comments