mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 20:52:44 +01:00
Break the loop whenever found
is set to true
This commit is contained in:
parent
da2095dbd1
commit
f056ed2383
@ -923,7 +923,10 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
foreach (CultureInfo ci in cultures)
|
||||
{
|
||||
if (ci.ThreeLetterISOLanguageName == culture.ThreeLetterISOLanguageName)
|
||||
{
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!found)
|
||||
cultures.Add(culture);
|
||||
@ -934,7 +937,10 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
foreach (CultureInfo ci in cultures)
|
||||
{
|
||||
if (ci.ThreeLetterISOLanguageName == culture.ThreeLetterISOLanguageName)
|
||||
{
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!found)
|
||||
cultures.Add(culture);
|
||||
@ -950,7 +956,10 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
foreach (CultureInfo ci in cultures)
|
||||
{
|
||||
if (ci.ThreeLetterISOLanguageName == culture.ThreeLetterISOLanguageName)
|
||||
{
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!found)
|
||||
cultures.Add(culture);
|
||||
@ -961,7 +970,10 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
foreach (CultureInfo ci in cultures)
|
||||
{
|
||||
if (ci.ThreeLetterISOLanguageName == culture.ThreeLetterISOLanguageName)
|
||||
{
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!found)
|
||||
cultures.Add(culture);
|
||||
|
Loading…
Reference in New Issue
Block a user