Skip to content

Commit 65a08ae

Browse files
xela-95Copilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a3cd8d8 commit 65a08ae

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

robot_log_visualizer/plotter/pyqtgraph_viewer_canvas.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,7 @@ def _add_missing_curves(
202202
)
203203

204204
# For real-time mode, disable curve clickability to avoid interfering with live updates
205-
if (
206-
self._signal_provider
207-
and self._signal_provider.provider_type == ProviderType.REALTIME
208-
):
205+
if self._signal_provider.provider_type == ProviderType.REALTIME:
209206
self._curves[key].setCurveClickable(False)
210207
self._curves[key].setEnabled(False)
211208

@@ -249,10 +246,7 @@ def _on_mouse_click(self, event) -> None: # noqa: N802
249246
return # ignore other buttons
250247

251248
# Disable point selection / labels in realtime mode
252-
if (
253-
self._signal_provider
254-
and self._signal_provider.provider_type == ProviderType.REALTIME
255-
):
249+
if self._signal_provider.provider_type == ProviderType.REALTIME:
256250
return
257251

258252
# Scene → data coordinates

0 commit comments

Comments
 (0)