mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-24 04:02:36 +01:00
[settings] - minor refact.
This commit is contained in:
parent
e48471cad6
commit
0352288f3b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user