From e33cf58f5e268bc9cb5eb26ad20dd64dfe40cd71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Wed, 14 Aug 2024 14:08:37 +0800 Subject: [PATCH] fix --- LunaTranslator/LunaTranslator/LunaTranslator.py | 1 + LunaTranslator/LunaTranslator/ocrengines/weixinocr.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/LunaTranslator/LunaTranslator/LunaTranslator.py b/LunaTranslator/LunaTranslator/LunaTranslator.py index 64d75fdd..a65dd291 100644 --- a/LunaTranslator/LunaTranslator/LunaTranslator.py +++ b/LunaTranslator/LunaTranslator/LunaTranslator.py @@ -921,6 +921,7 @@ class MAINUI: self.translation_ui.isbindedwindow = b self.translation_ui.refreshtooliconsignal.emit() + @tryprint def __do(): if not self.textsource: setandrefresh(False) diff --git a/LunaTranslator/LunaTranslator/ocrengines/weixinocr.py b/LunaTranslator/LunaTranslator/ocrengines/weixinocr.py index a45bdd35..5ec3082c 100644 --- a/LunaTranslator/LunaTranslator/ocrengines/weixinocr.py +++ b/LunaTranslator/LunaTranslator/ocrengines/weixinocr.py @@ -71,7 +71,7 @@ class OCR(baseocr): def end(self): wcocr_destroy = self.wcocr.wcocr_destroy - wcocr_destroy.argtypes = c_void_p + wcocr_destroy.argtypes = (c_void_p,) wcocr_destroy(self.pobj) def ocr(self, imagebinary):