ui: only open map pane when route is not empty (#24352)

old-commit-hash: bff0db566b
taco
Willem Melching 3 years ago committed by GitHub
parent 12d0a18a05
commit 0817a5aaef
  1. 2
      selfdrive/ui/qt/maps/map.cc

@ -131,7 +131,7 @@ void MapWindow::timerUpdate() {
}
}
if (sm->updated("navRoute")) {
if (sm->updated("navRoute") && (*sm)["navRoute"].getNavRoute().getCoordinates().size()) {
qWarning() << "Got new navRoute from navd. Opening map:" << allow_open;
// Only open the map on setting destination the first time

Loading…
Cancel
Save