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
This commit is contained in:
Shane Smiskol
2023-07-11 19:04:41 -07:00
committed by GitHub
parent e2b1c4d2fb
commit 24bd763e45
+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());