mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Use ShowIcon to determine when to load
This commit is contained in:
parent
2476e2d77d
commit
33c0af1fab
1 changed files with 1 additions and 9 deletions
|
|
@ -90,14 +90,6 @@ namespace Flow.Launcher.ViewModel
|
|||
}
|
||||
}
|
||||
|
||||
public bool UsePreviewImage
|
||||
{
|
||||
//todo binding
|
||||
get => !ImgIconAvailable && !GlyphAvailable ||
|
||||
Settings.UseGlyphIcons && !GlyphAvailable && ImgIconAvailable ||
|
||||
!Settings.UseGlyphIcons && ImgIconAvailable;
|
||||
}
|
||||
|
||||
public double IconRadius
|
||||
{
|
||||
get
|
||||
|
|
@ -224,7 +216,7 @@ namespace Flow.Launcher.ViewModel
|
|||
|
||||
public void LoadPreviewImage()
|
||||
{
|
||||
if (!PreviewImageLoaded && UsePreviewImage)
|
||||
if (!PreviewImageLoaded && ShowIcon == Visibility.Visible)
|
||||
{
|
||||
PreviewImageLoaded = true;
|
||||
_ = LoadPreviewImageAsync();
|
||||
|
|
|
|||
Loading…
Reference in a new issue