Skip to content

Commit 35d96bd

Browse files
Fix logic for imagepath and delegate
1 parent 617d2f5 commit 35d96bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Flow.Launcher/ViewModel/ResultViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,8 @@ private async Task LoadImageAsync()
227227

228228
private async Task LoadPreviewImageAsync()
229229
{
230-
var imagePath = string.IsNullOrEmpty(Result.Preview.PreviewImagePath) ? Result.IcoPath : Result.Preview.PreviewImagePath;
231-
var iconDelegate = Result.Icon ?? Result.Preview.PreviewDelegate;
230+
var imagePath = Result.Preview.PreviewImagePath ?? Result.IcoPath;
231+
var iconDelegate = Result.Preview.PreviewDelegate ?? Result.Icon;
232232
if (ImageLoader.CacheContainImage(imagePath, true))
233233
{
234234
previewImage = await LoadImageInternalAsync(imagePath, iconDelegate, true).ConfigureAwait(false);

0 commit comments

Comments
 (0)