修改AI生图接口、修改设备连接UI、修改LocalDimming逻辑和UI

This commit is contained in:
xinzhu.yin
2026-05-29 14:40:39 +08:00
parent 21455f3916
commit 85ac47e8de
13 changed files with 811 additions and 304 deletions

View File

@@ -1046,9 +1046,11 @@ def create_result_chart_frame(self: "PQAutomationApp"):
def on_chart_tab_changed(self: "PQAutomationApp", event):
"""Tab切换时的事件处理"""
try:
self._last_tab_index = self.chart_notebook.index(
self.chart_notebook.select()
)
selected_tab = self.chart_notebook.select()
# 在动态 add/forget tab 的过程中,可能短暂出现“无选中页签”。
if not selected_tab:
return
self._last_tab_index = self.chart_notebook.index(selected_tab)
except Exception as e:
self.log_gui.log(f"Tab切换事件处理失败: {str(e)}", level="error")