Sidebar retains its previous display when going onroad

Added function to retain the previous sidebar display when going onroad.
This commit is contained in:
FrogAi
2024-02-27 16:34:47 -07:00
parent 0f6de976aa
commit ed5ecc7a42
3 changed files with 4 additions and 1 deletions

View File

@@ -74,10 +74,11 @@ void MainWindow::closeSettings() {
main_layout->setCurrentWidget(homeWindow);
if (uiState()->scene.started) {
homeWindow->showSidebar(false);
// Map is always shown when using navigate on openpilot
if (uiState()->scene.navigate_on_openpilot) {
homeWindow->showMapPanel(true);
} else {
homeWindow->showSidebar(params.getBool("Sidebar"));
}
}
}