diff --git a/NAPS2.Lib/EtoForms/Ui/OcrSetupForm.cs b/NAPS2.Lib/EtoForms/Ui/OcrSetupForm.cs index bb59929556..1c0603a556 100644 --- a/NAPS2.Lib/EtoForms/Ui/OcrSetupForm.cs +++ b/NAPS2.Lib/EtoForms/Ui/OcrSetupForm.cs @@ -24,10 +24,17 @@ public OcrSetupForm(Naps2Config config, TesseractLanguageManager tesseractLangua LoadLanguages(); + var configOcrMode = Config.Get(c => c.OcrMode); + if (configOcrMode == LocalizedOcrMode.Legacy) + { + // Legacy is no longer supported + configOcrMode = LocalizedOcrMode.Fast; + } + _enableOcr.Checked = Config.Get(c => c.EnableOcr); _ocrLang.SelectedKey = Config.Get(c => c.OcrLanguageCode) ?? ""; if (_ocrLang.SelectedIndex == -1) _ocrLang.SelectedIndex = 0; - _ocrMode.SelectedIndex = (int) Config.Get(c => c.OcrMode); + _ocrMode.SelectedIndex = (int) configOcrMode; if (_ocrMode.SelectedIndex == -1) _ocrMode.SelectedIndex = 0; _ocrAfterScanning.Checked = Config.Get(c => c.OcrAfterScanning);