Avoid multiple empty entries in "recent files" - thx OmrSi :)

Related to #3991
This commit is contained in:
nikolaj.olsson 2020-02-21 07:41:13 +01:00
parent 2290919ce8
commit 73792348ff

View File

@ -77,6 +77,11 @@ namespace Nikse.SubtitleEdit.Core
public void Add(string fileName, string videoFileName, string originalFileName)
{
if (string.IsNullOrEmpty(fileName))
{
Files = Files.Where(p => !string.IsNullOrEmpty(p.FileName)).ToList();
}
RecentFileEntry existingEntry;
if (string.IsNullOrEmpty(originalFileName))
{