From 2b02bb307ca212805676b9a89933659a11235140 Mon Sep 17 00:00:00 2001 From: zggsong Date: Tue, 16 Apr 2024 17:33:59 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20ocr=E9=A1=B5=E9=9D=A2=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E7=A7=BB=E9=99=A4=E6=8D=A2=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/STranslate/ViewModels/OCRViewModel.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/STranslate/ViewModels/OCRViewModel.cs b/src/STranslate/ViewModels/OCRViewModel.cs index f59f7eeb..88e3bb97 100644 --- a/src/STranslate/ViewModels/OCRViewModel.cs +++ b/src/STranslate/ViewModels/OCRViewModel.cs @@ -306,11 +306,6 @@ private async Task OCRHandler(byte[] bytes) //更新图片 GetImg = GenerateImg(ocrResult, Bs!); - //取词前移除换行 - getText = - Singleton.Instance.CurrentConfig?.IsRemoveLineBreakGettingWords ?? false && !string.IsNullOrEmpty(getText) - ? StringUtil.RemoveLineBreaks(getText) - : getText; //OCR后自动复制 if (Singleton.Instance.CurrentConfig?.IsOcrAutoCopyText ?? false && !string.IsNullOrEmpty(getText)) Clipboard.SetDataObject(getText, true);