From 732dd1948c5b4d42950d12be4ecfd95b7b8dcd64 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: Fri, 16 Aug 2024 14:51:59 +0800 Subject: [PATCH] issues/1002 https://github.com/HIllya51/LunaTranslator/issues/1002 --- LunaTranslator/LunaTranslator/gui/translatorUI.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/LunaTranslator/LunaTranslator/gui/translatorUI.py b/LunaTranslator/LunaTranslator/gui/translatorUI.py index 95281d2d..7446aed0 100644 --- a/LunaTranslator/LunaTranslator/gui/translatorUI.py +++ b/LunaTranslator/LunaTranslator/gui/translatorUI.py @@ -312,9 +312,10 @@ class TranslatorWindow(resizableframeless): clear = kwargs.get("clear", False) iter_res_status, iter_context_class = iter_context - if iter_res_status == 2: # iter结束 + if iter_res_status in (0, 2): # iter结束 gobject.baseobject.transhis.getnewtranssignal.emit(name, res) - return + if iter_res_status == 2: + return if onlytrans: return