diff --git a/selfdrive/ui/qt/home.cc b/selfdrive/ui/qt/home.cc index 628d1ad10..cd45ed1e3 100644 --- a/selfdrive/ui/qt/home.cc +++ b/selfdrive/ui/qt/home.cc @@ -83,7 +83,7 @@ void HomeWindow::offroadTransition(bool offroad) { QJsonObject &frogpilot_toggles = frogpilot_scene.frogpilot_toggles; body->setEnabled(false); - sidebar->setVisible(offroad || frogpilot_toggles.value("debug_mode").toBool()); + sidebar->setVisible(offroad || params.getBool("SidebarOpen") || frogpilot_toggles.value("debug_mode").toBool()); if (offroad) { slayout->setCurrentWidget(home); @@ -113,6 +113,7 @@ void HomeWindow::mousePressEvent(QMouseEvent* e) { sidebar->setVisible(!sidebar->isVisible()); // FrogPilot variables + params.putBool("SidebarOpen", sidebar->isVisible()); } } diff --git a/selfdrive/ui/qt/window.cc b/selfdrive/ui/qt/window.cc index 53e16262f..2afac7839 100644 --- a/selfdrive/ui/qt/window.cc +++ b/selfdrive/ui/qt/window.cc @@ -74,7 +74,7 @@ void MainWindow::closeSettings() { main_layout->setCurrentWidget(homeWindow); if (uiState()->scene.started) { - homeWindow->showSidebar(frogpilotUIState()->frogpilot_scene.frogpilot_toggles.value("debug_mode").toBool()); + homeWindow->showSidebar(params.getBool("SidebarOpen") || frogpilotUIState()->frogpilot_scene.frogpilot_toggles.value("debug_mode").toBool()); } }