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

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