We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a81e7a commit 9a37365Copy full SHA for 9a37365
1 file changed
robot_log_visualizer/ui/gui.py
@@ -601,7 +601,9 @@ def update_index(self):
601
self.ui.timeSlider.setValue(index)
602
self.ui.timeLabel.setText(f"{current_time:.2f}")
603
604
- # Push vline directly to the active plot tab (avoids separate timer)
+ # Also push the current time to the active plot tab so the vline stays
605
+ # in sync with the selected index. This complements the canvas timer-
606
+ # driven updates rather than replacing them.
607
active_tab = self.ui.tabPlotWidget.currentIndex()
608
if 0 <= active_tab < len(self.plot_items):
609
self.plot_items[active_tab].canvas.update_vline_value(current_time)
0 commit comments