From f6d5bf3374f446b27c1db8a70a8059565e77fc46 Mon Sep 17 00:00:00 2001 From: Vic <10308169+VictoriousRaptor@users.noreply.github.com> Date: Tue, 29 Nov 2022 15:05:04 +0800 Subject: [PATCH] Trigger OnPropertyChanged of Image --- Flow.Launcher/ViewModel/ResultViewModel.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher/ViewModel/ResultViewModel.cs b/Flow.Launcher/ViewModel/ResultViewModel.cs index 340f0a62d..ad909459f 100644 --- a/Flow.Launcher/ViewModel/ResultViewModel.cs +++ b/Flow.Launcher/ViewModel/ResultViewModel.cs @@ -191,12 +191,14 @@ namespace Flow.Launcher.ViewModel } } + // TODO still needed after #1351? var loadFullImage = (Path.GetExtension(imagePath) ?? "").Equals(".url", StringComparison.OrdinalIgnoreCase); + // TODO should use loadFullImage to hit cache? if (ImageLoader.CacheContainImage(imagePath)) { // will get here either when icoPath has value\icon delegate is null\when had exception in delegate - image = await ImageLoader.LoadAsync(imagePath, loadFullImage).ConfigureAwait(false); + Image = await ImageLoader.LoadAsync(imagePath, loadFullImage).ConfigureAwait(false); return; }