From 4c3aab96aa8755d9e85c0e5789fef4904ceb7699 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: Tue, 3 Sep 2024 09:09:00 +0800 Subject: [PATCH] Update textsourcebase.py --- LunaTranslator/LunaTranslator/textsource/textsourcebase.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/LunaTranslator/LunaTranslator/textsource/textsourcebase.py b/LunaTranslator/LunaTranslator/textsource/textsourcebase.py index a0207b86..bd0af593 100644 --- a/LunaTranslator/LunaTranslator/textsource/textsourcebase.py +++ b/LunaTranslator/LunaTranslator/textsource/textsourcebase.py @@ -59,11 +59,7 @@ class basetext: waitforresultcallback=resultwaitor.put, onlytrans=True, ) - text, info = resultwaitor.get(), 0 - if info: - gobject.baseobject.displayinfomessage(text, info) - else: - return text + return resultwaitor.get() @property def isautorunning(self):