mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 11:42:36 +01:00
Avoid multiple empty entries in "recent files" - thx OmrSi :)
Related to #3991
This commit is contained in:
parent
2290919ce8
commit
73792348ff
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user