nav: Only recompute when onroad (#21797)

pull/21801/head
Willem Melching 4 years ago committed by GitHub
parent 6048988c13
commit c09cff23aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      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();

Loading…
Cancel
Save