修改AI生图接口、修改设备连接UI、修改LocalDimming逻辑和UI
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user