From 0d3cd1a478964e64ef6e1f4a98071b017338e374 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, 4 Sep 2024 22:55:01 +0800 Subject: [PATCH] fix --- LunaTranslator/LunaTranslator/LunaTranslator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LunaTranslator/LunaTranslator/LunaTranslator.py b/LunaTranslator/LunaTranslator/LunaTranslator.py index 8b2e6935..9a4f15a4 100644 --- a/LunaTranslator/LunaTranslator/LunaTranslator.py +++ b/LunaTranslator/LunaTranslator/LunaTranslator.py @@ -303,7 +303,7 @@ class MAINUI: ) ) ): - if text != "": + if text not in ("", self.currenttext): if len(text) > globalconfig["maxlength"]: text = text[: globalconfig["maxlength"]] + "……" else: