Trigger OnPropertyChanged of Image

This commit is contained in:
Vic 2022-11-29 15:05:04 +08:00
parent 485639902f
commit f6d5bf3374

View file

@ -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;
}