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):