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

pull/28086/head
Dean Lee 2 years ago committed by GitHub
parent 9f87df66cb
commit e5678d3a3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      tools/cabana/chart/chartswidget.cc

@ -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; });
}

Loading…
Cancel
Save