mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
only modify property when async (avoid duplicate read)
This commit is contained in:
parent
37f1a64495
commit
1c6d207595
1 changed files with 2 additions and 2 deletions
|
|
@ -59,7 +59,7 @@ namespace Flow.Launcher.ViewModel
|
|||
{
|
||||
try
|
||||
{
|
||||
Image = Result.Icon();
|
||||
image = Result.Icon();
|
||||
return;
|
||||
}
|
||||
catch (Exception e)
|
||||
|
|
@ -71,7 +71,7 @@ namespace Flow.Launcher.ViewModel
|
|||
if (ImageLoader.CacheContainImage(imagePath))
|
||||
{
|
||||
// will get here either when icoPath has value\icon delegate is null\when had exception in delegate
|
||||
Image = ImageLoader.Load(imagePath);
|
||||
image = ImageLoader.Load(imagePath);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue