mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Trigger OnPropertyChanged of Image
This commit is contained in:
parent
485639902f
commit
f6d5bf3374
1 changed files with 3 additions and 1 deletions
|
|
@ -191,12 +191,14 @@ namespace Flow.Launcher.ViewModel
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO still needed after #1351?
|
||||||
var loadFullImage = (Path.GetExtension(imagePath) ?? "").Equals(".url", StringComparison.OrdinalIgnoreCase);
|
var loadFullImage = (Path.GetExtension(imagePath) ?? "").Equals(".url", StringComparison.OrdinalIgnoreCase);
|
||||||
|
|
||||||
|
// TODO should use loadFullImage to hit cache?
|
||||||
if (ImageLoader.CacheContainImage(imagePath))
|
if (ImageLoader.CacheContainImage(imagePath))
|
||||||
{
|
{
|
||||||
// will get here either when icoPath has value\icon delegate is null\when had exception in delegate
|
// 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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue