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
This commit is contained in:
Shane Smiskol
2023-07-11 19:04:41 -07:00
committed by GitHub
parent b56aabb74e
commit c158537df6
+1
View File
@@ -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());