From 33c0af1fab09e732f79d21b2a0f5e80e4d014ee6 Mon Sep 17 00:00:00 2001 From: Vic <10308169+VictoriousRaptor@users.noreply.github.com> Date: Fri, 23 Dec 2022 00:47:01 +0800 Subject: [PATCH] Use ShowIcon to determine when to load --- Flow.Launcher/ViewModel/ResultViewModel.cs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Flow.Launcher/ViewModel/ResultViewModel.cs b/Flow.Launcher/ViewModel/ResultViewModel.cs index aef336b1f..276fe8500 100644 --- a/Flow.Launcher/ViewModel/ResultViewModel.cs +++ b/Flow.Launcher/ViewModel/ResultViewModel.cs @@ -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();