Fix for last commit

This commit is contained in:
niksedk 2022-08-30 15:55:29 +02:00
parent 6bdc0f358d
commit e9aca81170

View File

@ -492,16 +492,16 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
_ocrMethodBinaryImageCompare = comboBoxOcrMethod.Items.Add(language.OcrViaImageCompare);
if (Configuration.IsRunningOnLinux || Configuration.IsRunningOnMac)
{
if (Configuration.IsRunningOnLinux && Configuration.TesseractDataDirectory.EndsWith("/5/tessdata", StringComparison.Ordinal))
{
Tesseract5Version = "5";
}
Tesseract5Version = "4";
checkBoxTesseractMusicOn.Checked = false;
checkBoxTesseractMusicOn.Visible = false;
checkBoxTesseractFallback.Checked = false;
checkBoxTesseractFallback.Visible = false;
if (Configuration.IsRunningOnLinux && Configuration.TesseractDataDirectory.EndsWith("/5/tessdata", StringComparison.Ordinal))
{
Tesseract5Version = "5";
}
}
else
{