Bug fix: First click on Liberated icon shows 'File not found: <temppath>'. Second click opens correct final path. #164

This commit is contained in:
Robert McRackan 2021-11-30 09:54:32 -05:00
parent b4015030cf
commit 5059333b38
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Version>6.5.3.1</Version>
<Version>6.5.4.1</Version>
</PropertyGroup>
<ItemGroup>

View File

@ -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