Skip to content

Commit 9a37365

Browse files
Update robot_log_visualizer/ui/gui.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 5a81e7a commit 9a37365

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

robot_log_visualizer/ui/gui.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,9 @@ def update_index(self):
601601
self.ui.timeSlider.setValue(index)
602602
self.ui.timeLabel.setText(f"{current_time:.2f}")
603603

604-
# Push vline directly to the active plot tab (avoids separate timer)
604+
# 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.
605607
active_tab = self.ui.tabPlotWidget.currentIndex()
606608
if 0 <= active_tab < len(self.plot_items):
607609
self.plot_items[active_tab].canvas.update_vline_value(current_time)

0 commit comments

Comments
 (0)