mirror of
https://github.com/hyb-oyqq/FRAISEMOE-Addons-Installer-NEXT.git
synced 2025-12-18 21:10:28 +00:00
feat(core): 增强离线模式和日志记录功能
- 在主窗口中添加离线模式提示弹窗,用户可清晰了解离线模式切换情况。 - 更新离线模式管理器,优化补丁文件扫描和日志记录,确保无论调试模式下均能记录相关信息。 - 在下载管理器和补丁管理器中增强调试信息的记录,提升错误处理能力。 - 更新卸载处理程序,增加详细的日志记录,确保用户操作的透明性和可追溯性。
This commit is contained in:
@@ -604,8 +604,20 @@ class MainWindow(QMainWindow):
|
||||
# 启用开始安装按钮
|
||||
self.set_start_button_enabled(True)
|
||||
|
||||
logger.debug(f"DEBUG: 已自动切换到离线模式,找到离线补丁文件: {list(self.offline_mode_manager.offline_patches.keys())}")
|
||||
# 记录日志
|
||||
found_patches = list(self.offline_mode_manager.offline_patches.keys())
|
||||
logger.debug(f"DEBUG: 已自动切换到离线模式,找到离线补丁文件: {found_patches}")
|
||||
logger.info(f"发现离线补丁文件: {found_patches},将自动切换到离线模式")
|
||||
logger.debug(f"DEBUG: 离线模式下启用开始安装按钮")
|
||||
|
||||
# 显示提示弹窗
|
||||
from PySide6.QtWidgets import QMessageBox
|
||||
QMessageBox.information(
|
||||
self,
|
||||
f"离线模式提示 - {APP_NAME}",
|
||||
f"已找到本地补丁,将主动转为离线模式。\n\n检测到的补丁文件: {', '.join(found_patches)}"
|
||||
)
|
||||
|
||||
return True
|
||||
else:
|
||||
# 如果没有找到离线补丁文件,禁用离线模式
|
||||
|
||||
Reference in New Issue
Block a user