修复日志切换错误

This commit is contained in:
xinzhu.yin
2026-06-09 15:40:44 +08:00
parent f33984affa
commit 25be4b7f4a
2 changed files with 11 additions and 1 deletions

View File

@@ -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
# 隐藏所有面板