Merge pull request #3897 from Flow-Launcher/recursive_loading

Fix possible image recursive loading
This commit is contained in:
Jack Ye 2025-08-13 07:30:23 +01:00 committed by GitHub
commit cc42cd6e45
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,12 +37,17 @@ namespace Flow.Launcher.ViewModel
OnPropertyChanged(nameof(Image));
}
private bool _imageLoaded = false;
public ImageSource Image
{
get
{
if (_image == ImageLoader.MissingImage)
if (!_imageLoaded)
{
_imageLoaded = true;
_ = LoadIconAsync();
}
return _image;
}