From 25be4b7f4a26eb5a6eddb187483bf769e271d9a3 Mon Sep 17 00:00:00 2001 From: "xinzhu.yin" Date: Tue, 9 Jun 2026 15:40:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A5=E5=BF=97=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/panel_manager.py | 10 ++++++++++ settings/pq_config.json | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) 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": "屏模组性能测试",