mirror of
https://github.com/hyb-oyqq/FRAISEMOE-Addons-Installer-NEXT.git
synced 2025-12-20 13:58:37 +00:00
feat(ui): 优化游戏选择对话框和离线模式菜单
- 重构游戏选择对话框,使用列表控件替代复选框,提升用户体验。 - 添加全选按钮功能,简化游戏选择操作。 - 更新离线模式管理器和UI管理器,确保菜单状态与当前模式同步。
This commit is contained in:
@@ -128,6 +128,13 @@ class OfflineModeManager:
|
||||
# 同时更新UI中的标题标签
|
||||
if hasattr(self.main_window, 'ui') and hasattr(self.main_window.ui, 'title_label'):
|
||||
self.main_window.ui.title_label.setText(f"{APP_NAME} v{APP_VERSION} {mode_indicator}")
|
||||
|
||||
# 同步更新UI菜单中的模式选择状态
|
||||
if hasattr(self.main_window, 'ui_manager'):
|
||||
ui_manager = self.main_window.ui_manager
|
||||
if hasattr(ui_manager, 'online_mode_action') and hasattr(ui_manager, 'offline_mode_action'):
|
||||
ui_manager.online_mode_action.setChecked(not enabled)
|
||||
ui_manager.offline_mode_action.setChecked(enabled)
|
||||
|
||||
if debug_mode:
|
||||
logger.debug(f"DEBUG: 离线模式已{'启用' if enabled else '禁用'}")
|
||||
|
||||
Reference in New Issue
Block a user