cabana: fix the timeline position of the newly created chart was always 0 when paused. (#28079)

old-commit-hash: e5678d3a3f
This commit is contained in:
Dean Lee
2023-05-03 01:44:47 +08:00
committed by GitHub
parent 60dc9c90e4
commit 4918304e47
+1
View File
@@ -264,6 +264,7 @@ void ChartsWidget::showChart(const MessageId &id, const cabana::Signal *sig, boo
if (show && !chart) {
chart = merge && currentCharts().size() > 0 ? currentCharts().front() : createChart();
chart->addSignal(id, sig);
updateState();
} else if (!show && chart) {
chart->removeIf([&](auto &s) { return s.msg_id == id && s.sig == sig; });
}