继续优化UI加载速度

This commit is contained in:
xinzhu.yin
2026-06-22 10:52:51 +08:00
parent 92cba114a9
commit 2d8d4119e3
7 changed files with 307 additions and 72 deletions

View File

@@ -172,6 +172,14 @@ def _apply_custom_result_theme(self: "PQAutomationApp"):
def refresh_custom_template_theme(self: "PQAutomationApp"):
"""刷新客户模板结果表的主题色。"""
notebook = getattr(self, "chart_notebook", None)
tab_frame = getattr(self, "custom_template_tab_frame", None)
if notebook is not None and tab_frame is not None:
try:
if str(tab_frame) not in notebook.tabs():
return
except Exception:
pass
_apply_custom_result_theme(self)