From 4ce014fdc5245ddde35428ad1e90f0e4475e96a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <1173718158@qq.com> Date: Sat, 14 Dec 2024 12:35:13 +0800 Subject: [PATCH] . --- py/LunaTranslator/gui/showword.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/py/LunaTranslator/gui/showword.py b/py/LunaTranslator/gui/showword.py index 76bcf4d1..59728aaa 100644 --- a/py/LunaTranslator/gui/showword.py +++ b/py/LunaTranslator/gui/showword.py @@ -96,6 +96,7 @@ class AnkiWindow(QWidget): def crophide(self, s=False): if s: self.parent().parent().parent().hide() + gobject.baseobject.translation_ui.hide_() def ocroncefunction(rect): img = imageCut(0, rect[0][0], rect[0][1], rect[1][0], rect[1][1]) @@ -105,6 +106,7 @@ class AnkiWindow(QWidget): if globalconfig["ankiconnect"]["ocrcroped"]: self.asyncocr(img) if s: + gobject.baseobject.translation_ui.show_() self.parent().parent().parent().show() rangeselct_function(ocroncefunction, False)