修改calman灰阶点击异常、修改色准结果显示异常
This commit is contained in:
@@ -831,6 +831,18 @@ def _on_toggle_theme(self: "PQAutomationApp") -> None:
|
||||
self.update_sidebar_selection()
|
||||
except Exception:
|
||||
pass
|
||||
# 以新的 dark_mode 值重绘当前测试类型的所有图表
|
||||
if hasattr(self, "_chart_snapshots") and hasattr(self, "config"):
|
||||
test_type = getattr(self.config, "current_test_type", None)
|
||||
if test_type:
|
||||
snapshots = self._chart_snapshots.get(test_type, {})
|
||||
for chart_name, args in snapshots.items():
|
||||
plot_fn = getattr(self, f"plot_{chart_name}", None)
|
||||
if plot_fn:
|
||||
try:
|
||||
plot_fn(*args)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
||||
def update_config_info_display(self: "PQAutomationApp"):
|
||||
|
||||
Reference in New Issue
Block a user