From 68ae8a1df31981d0f3092d6a675a89661cd6189c Mon Sep 17 00:00:00 2001 From: Vic <10308169+VictoriousRaptor@users.noreply.github.com> Date: Tue, 27 Dec 2022 11:53:10 +0800 Subject: [PATCH] Only call LoadPreviewImage when using default preview --- Flow.Launcher/ViewModel/ResultViewModel.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Flow.Launcher/ViewModel/ResultViewModel.cs b/Flow.Launcher/ViewModel/ResultViewModel.cs index 276fe8500..f0f77d61f 100644 --- a/Flow.Launcher/ViewModel/ResultViewModel.cs +++ b/Flow.Launcher/ViewModel/ResultViewModel.cs @@ -216,10 +216,13 @@ namespace Flow.Launcher.ViewModel public void LoadPreviewImage() { - if (!PreviewImageLoaded && ShowIcon == Visibility.Visible) + if (ShowDefaultPreview == Visibility.Visible) { - PreviewImageLoaded = true; - _ = LoadPreviewImageAsync(); + if (!PreviewImageLoaded && ShowIcon == Visibility.Visible) + { + PreviewImageLoaded = true; + _ = LoadPreviewImageAsync(); + } } }