修复日志切换错误
This commit is contained in:
@@ -28,6 +28,16 @@ def show_panel(self: "PQAutomationApp", panel_name):
|
|||||||
# 如果当前面板就是要显示的面板,则隐藏它
|
# 如果当前面板就是要显示的面板,则隐藏它
|
||||||
if self.current_panel == panel_name:
|
if self.current_panel == panel_name:
|
||||||
self.hide_all_panels()
|
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
|
return
|
||||||
|
|
||||||
# 隐藏所有面板
|
# 隐藏所有面板
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"current_test_type": "local_dimming",
|
"current_test_type": "screen_module",
|
||||||
"test_types": {
|
"test_types": {
|
||||||
"screen_module": {
|
"screen_module": {
|
||||||
"name": "屏模组性能测试",
|
"name": "屏模组性能测试",
|
||||||
|
|||||||
Reference in New Issue
Block a user