From 24bd763e45fe59c3b8264764cd97c5d33d8b95e5 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Tue, 11 Jul 2023 19:04:41 -0700 Subject: [PATCH] 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: c158537df69c21dc0f134774cdd02b48dfbadeeb --- selfdrive/ui/qt/maps/map.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/selfdrive/ui/qt/maps/map.cc b/selfdrive/ui/qt/maps/map.cc index 3ae708624..9e55da108 100644 --- a/selfdrive/ui/qt/maps/map.cc +++ b/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());