[settings] - minor refact.

This commit is contained in:
Ivandro Ismael 2017-04-03 20:59:14 +01:00
parent e48471cad6
commit 0352288f3b

View File

@ -1421,13 +1421,11 @@ namespace Nikse.SubtitleEdit.Forms
var cb = comboBoxWordListLanguage.Items[comboBoxWordListLanguage.SelectedIndex] as ComboBoxLanguage;
if (cb == null)
return;
if (reloadListBox)
listBoxOcrFixList.Items.Clear();
_ocrFixReplaceList = OcrFixReplaceList.FromLanguageId(cb.CultureInfo.ThreeLetterISOLanguageName);
if (reloadListBox)
{
listBoxOcrFixList.BeginUpdate();
listBoxOcrFixList.Items.Clear();
foreach (var pair in _ocrFixReplaceList.WordReplaceList)
{
listBoxOcrFixList.Items.Add(pair.Key + " --> " + pair.Value);