Skip to content

Commit f6d5bf3

Browse files
Trigger OnPropertyChanged of Image
1 parent 4856399 commit f6d5bf3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Flow.Launcher/ViewModel/ResultViewModel.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,14 @@ private async Task LoadImageAsync()
191191
}
192192
}
193193

194+
// TODO still needed after #1351?
194195
var loadFullImage = (Path.GetExtension(imagePath) ?? "").Equals(".url", StringComparison.OrdinalIgnoreCase);
195196

197+
// TODO should use loadFullImage to hit cache?
196198
if (ImageLoader.CacheContainImage(imagePath))
197199
{
198200
// will get here either when icoPath has value\icon delegate is null\when had exception in delegate
199-
image = await ImageLoader.LoadAsync(imagePath, loadFullImage).ConfigureAwait(false);
201+
Image = await ImageLoader.LoadAsync(imagePath, loadFullImage).ConfigureAwait(false);
200202
return;
201203
}
202204

0 commit comments

Comments
 (0)