From 3267bd5c14959f8bb3723eae4ee4e4545dd5d3b0 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Fri, 30 Jul 2021 12:13:51 +0200 Subject: [PATCH] nav: Only recompute when onroad (#21797) old-commit-hash: c09cff23aa0a69063edb168afcdb8e1212bb0e19 --- selfdrive/ui/qt/maps/map.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/selfdrive/ui/qt/maps/map.cc b/selfdrive/ui/qt/maps/map.cc index fec673ac1..4db9ce5e7 100644 --- a/selfdrive/ui/qt/maps/map.cc +++ b/selfdrive/ui/qt/maps/map.cc @@ -259,6 +259,10 @@ static float get_time_typical(const QGeoRouteSegment &segment) { void MapWindow::recomputeRoute() { + if (!QUIState::ui_state.scene.started) { + return; + } + // Retry all timed out requests if (!m_map.isNull()) { m_map->connectionEstablished();