fix: 历史记录加载方法优化

This commit is contained in:
DLmaster361
2025-04-21 19:21:27 +08:00
parent f3af6ddbbc
commit 39876832f3
9 changed files with 100 additions and 29 deletions

View File

@@ -26,7 +26,7 @@ v4.3
"""
from loguru import logger
from PySide6.QtWidgets import QWidget
from PySide6.QtWidgets import QApplication, QWidget
import sys
import ctypes
import win32gui
@@ -113,6 +113,7 @@ class _SystemHandler:
elif mode == "KillSelf":
self.main_window.close()
QApplication.quit()
elif sys.platform.startswith("linux"):
@@ -138,6 +139,7 @@ class _SystemHandler:
elif mode == "KillSelf":
self.main_window.close()
QApplication.quit()
def is_startup(self) -> bool:
"""判断程序是否已经开机自启"""