diff --git a/app/views/panel_manager.py b/app/views/panel_manager.py index 7820dfa..e71b3cb 100644 --- a/app/views/panel_manager.py +++ b/app/views/panel_manager.py @@ -28,6 +28,16 @@ def show_panel(self: "PQAutomationApp", panel_name): # 如果当前面板就是要显示的面板,则隐藏它 if self.current_panel == panel_name: self.hide_all_panels() + # 如果当前测试类型是 Local Dimming,则在关闭日志等面板后自动恢复 Local Dimming 面板 + try: + if ( + getattr(self, "config", None) + and getattr(self.config, "current_test_type", None) == "local_dimming" + and panel_name != "local_dimming" + ): + self.show_panel("local_dimming") + except Exception: + pass return # 隐藏所有面板 diff --git a/settings/pq_config.json b/settings/pq_config.json index e72c6bc..f30f69f 100644 --- a/settings/pq_config.json +++ b/settings/pq_config.json @@ -1,5 +1,5 @@ { - "current_test_type": "local_dimming", + "current_test_type": "screen_module", "test_types": { "screen_module": { "name": "屏模组性能测试",