ui: reset nav status on offroad transition (#28897)

* need to do this

* actually better to clear it on offroad transition, then onroad transition will be fine
old-commit-hash: c158537df6
beeps
Shane Smiskol 2 years ago committed by GitHub
parent e2b1c4d2fb
commit 24bd763e45
  1. 1
      selfdrive/ui/qt/maps/map.cc

@ -357,6 +357,7 @@ void MapWindow::pinchTriggered(QPinchGesture *gesture) {
void MapWindow::offroadTransition(bool offroad) {
if (offroad) {
clearRoute();
uiState()->scene.navigate_on_openpilot = false;
} else {
auto dest = coordinate_from_param("NavDestination");
emit requestVisible(dest.has_value());

Loading…
Cancel
Save