From b938a2c61fb1aac50f56d4e910d10f8d848d9864 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, 14 Aug 2024 12:46:32 +0800 Subject: [PATCH] once --- LunaTranslator/LunaTranslator/gui/translatorUI.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/LunaTranslator/LunaTranslator/gui/translatorUI.py b/LunaTranslator/LunaTranslator/gui/translatorUI.py index 1f916d0c..08666f31 100644 --- a/LunaTranslator/LunaTranslator/gui/translatorUI.py +++ b/LunaTranslator/LunaTranslator/gui/translatorUI.py @@ -884,7 +884,10 @@ class TranslatorWindow(resizableframeless): self.enterfunction(2 + globalconfig["disappear_delay_tool"]) self.autohidedelaythread() self.tracewindowposthread() - self.__showlinks() + today = time.strftime("%Y-%m-%d", time.localtime()) + if globalconfig.get("lastvisday", None) != today: + globalconfig["lastvisday"] = today + self.__showlinks() def __showsupport(self, _): dia = QDialog(self, Qt.WindowType.WindowCloseButtonHint)