[patch] 新增自动更新功能 模块Test-center

This commit is contained in:
2025-10-28 17:15:56 +08:00
parent 5945e1b0e7
commit 16d5d95c4e
2 changed files with 134 additions and 33 deletions

View File

@@ -1233,7 +1233,8 @@ class LoginWindow(QMainWindow):
"""显示更新对话框(信号槽函数,始终在主线程中执行)"""
try:
self.add_log(f"🎯 主线程收到更新信号: v{latest_version}", "INFO")
self.show_update_notification(latest_version, download_url)
# 🔥 修改调用新的trigger_update方法支持自动更新
self.trigger_update(download_url, latest_version)
except Exception as e:
self.add_log(f"❌ 显示更新对话框失败: {e}", "ERROR")
import traceback