Skip to content

Commit 1c6d207

Browse files
committed
only modify property when async (avoid duplicate read)
1 parent 37f1a64 commit 1c6d207

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
@@ -59,7 +59,7 @@ private async void LoadImage()
5959
{
6060
try
6161
{
62-
Image = Result.Icon();
62+
image = Result.Icon();
6363
return;
6464
}
6565
catch (Exception e)
@@ -71,7 +71,7 @@ private async void LoadImage()
7171
if (ImageLoader.CacheContainImage(imagePath))
7272
{
7373
// will get here either when icoPath has value\icon delegate is null\when had exception in delegate
74-
Image = ImageLoader.Load(imagePath);
74+
image = ImageLoader.Load(imagePath);
7575
return;
7676
}
7777

0 commit comments

Comments
 (0)