Skip to content

Commit

Permalink
perf: ocr页面移除自动移除换行
Browse files Browse the repository at this point in the history
  • Loading branch information
ZGGSONG committed Apr 16, 2024
1 parent 12a67bd commit 2b02bb3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/STranslate/ViewModels/OCRViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,6 @@ private async Task OCRHandler(byte[] bytes)
//更新图片
GetImg = GenerateImg(ocrResult, Bs!);

//取词前移除换行
getText =
Singleton<ConfigHelper>.Instance.CurrentConfig?.IsRemoveLineBreakGettingWords ?? false && !string.IsNullOrEmpty(getText)
? StringUtil.RemoveLineBreaks(getText)
: getText;
//OCR后自动复制
if (Singleton<ConfigHelper>.Instance.CurrentConfig?.IsOcrAutoCopyText ?? false && !string.IsNullOrEmpty(getText))
Clipboard.SetDataObject(getText, true);
Expand Down

0 comments on commit 2b02bb3

Please sign in to comment.