This commit is contained in:
2025-12-05 18:06:39 +08:00
parent c59d29d52e
commit b435f12c49
4 changed files with 15 additions and 8 deletions
-1
View File
@@ -44,7 +44,6 @@ class MainEntry:
else:
# 创建托盘图标
self.icon = pystray.Icon("name", image, "标题", menu)
PrintLog(LogLevel.INFO, "创建托盘图标 start threading")
self.trayThread = threading.Thread(target=self.icon.run, daemon=True)
self.trayThread.start()
# 在后台线程运行托盘