继续优化UI加载速度
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user