From 5059333b3862dea8bc1f08012b84dab28f912d49 Mon Sep 17 00:00:00 2001 From: Robert McRackan Date: Tue, 30 Nov 2021 09:54:32 -0500 Subject: [PATCH] Bug fix: First click on Liberated icon shows 'File not found: '. Second click opens correct final path. #164 --- AppScaffolding/AppScaffolding.csproj | 2 +- LibationFileManager/AudibleFileStorage.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AppScaffolding/AppScaffolding.csproj b/AppScaffolding/AppScaffolding.csproj index b659adb8..b65453db 100644 --- a/AppScaffolding/AppScaffolding.csproj +++ b/AppScaffolding/AppScaffolding.csproj @@ -3,7 +3,7 @@ net6.0 - 6.5.3.1 + 6.5.4.1 diff --git a/LibationFileManager/AudibleFileStorage.cs b/LibationFileManager/AudibleFileStorage.cs index 0b18404b..7fb8392d 100644 --- a/LibationFileManager/AudibleFileStorage.cs +++ b/LibationFileManager/AudibleFileStorage.cs @@ -47,7 +47,7 @@ namespace LibationFileManager { // primary lookup var cachedFile = FilePathCache.GetFirstPath(productId, FileType); - if (cachedFile != null) + if (cachedFile is not null && File.Exists(cachedFile)) return cachedFile; // secondary lookup attempt