Return to driver view from mission select

This commit is contained in:
Jasper Blanckenburg 2023-08-04 13:15:50 +02:00
parent f191946a90
commit 61656942f9
1 changed files with 5 additions and 1 deletions

View File

@ -38,7 +38,11 @@ void MissionSelectPresenter::nextScreen() {
FrontendApplication *app =
static_cast<FrontendApplication *>(FrontendApplication::getInstance());
if (app->getBackToMissionSelect()) {
if (vehicle_state.active_mission == MISSION_MANUAL) {
app->gotoDriverViewScreenNoTransition();
} else {
app->gotoAMIScreenNoTransition();
}
return;
}
}