From 79163b517c36d5b37edf923059aeb2d8715519b4 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: Thu, 11 Jul 2024 16:42:18 +0800 Subject: [PATCH] fix --- LunaTranslator/LunaTranslator/gui/translatorUI.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/LunaTranslator/LunaTranslator/gui/translatorUI.py b/LunaTranslator/LunaTranslator/gui/translatorUI.py index dff5a011..a61e90cd 100644 --- a/LunaTranslator/LunaTranslator/gui/translatorUI.py +++ b/LunaTranslator/LunaTranslator/gui/translatorUI.py @@ -929,9 +929,10 @@ class QUnFrameWindow(resizableframeless): while self.checkisentered(): time.sleep(0.1) self._isentered = False - if delay is None: - delay = globalconfig["disappear_delay_tool"] - time.sleep(delay) + if not globalconfig["toolviswhenenter"]: + if delay is None: + delay = globalconfig["disappear_delay_tool"] + time.sleep(delay) if self.enter_sig != enter_sig: return if globalconfig["locktools"]: