mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Merge pull request #1686 from ivandrofly/mnr
[JoinSubtitles] - Exit the loop as soon as the name is found in list.
This commit is contained in:
commit
b1e8f23555
@ -68,7 +68,10 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
foreach (string existingFileName in _fileNamesToJoin)
|
||||
{
|
||||
if (existingFileName.Equals(fileName, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
alreadyInList = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!alreadyInList)
|
||||
_fileNamesToJoin.Add(fileName);
|
||||
|
Loading…
Reference in New Issue
Block a user