fix(timer): 修复反复记录FailSafeException影响log阅读

This commit is contained in:
DLmaster
2025-01-28 10:22:17 +08:00
parent f0d272cce5
commit 43448cc68d
2 changed files with 5 additions and 5 deletions

View File

@@ -45,6 +45,8 @@ class MainTimer(QWidget):
):
super().__init__(parent)
self.if_FailSafeException = False
self.Timer = QTimer()
self.Timer.timeout.connect(self.timed_start)
self.Timer.timeout.connect(self.set_silence)
@@ -100,7 +102,9 @@ class MainTimer(QWidget):
]
)
except pyautogui.FailSafeException as e:
logger.warning(f"FailSafeException: {e}")
if not self.if_FailSafeException:
logger.warning(f"FailSafeException: {e}")
self.if_FailSafeException = True
def search_queue(self) -> list:
"""搜索所有调度队列实例"""

View File

@@ -1,4 +0,0 @@
{
"content": "",
"time": "2000-01-01 00:00"
}