Skip to content

Commit 33c0af1

Browse files
Use ShowIcon to determine when to load
1 parent 2476e2d commit 33c0af1

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

Flow.Launcher/ViewModel/ResultViewModel.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,6 @@ public Visibility ShowIcon
9090
}
9191
}
9292

93-
public bool UsePreviewImage
94-
{
95-
//todo binding
96-
get => !ImgIconAvailable && !GlyphAvailable ||
97-
Settings.UseGlyphIcons && !GlyphAvailable && ImgIconAvailable ||
98-
!Settings.UseGlyphIcons && ImgIconAvailable;
99-
}
100-
10193
public double IconRadius
10294
{
10395
get
@@ -224,7 +216,7 @@ private async Task LoadPreviewImageAsync()
224216

225217
public void LoadPreviewImage()
226218
{
227-
if (!PreviewImageLoaded && UsePreviewImage)
219+
if (!PreviewImageLoaded && ShowIcon == Visibility.Visible)
228220
{
229221
PreviewImageLoaded = true;
230222
_ = LoadPreviewImageAsync();

0 commit comments

Comments
 (0)