map panel: show map on interactive timeout (#28904)

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

old-commit-hash: daf80eaef5
beeps
Shane Smiskol 2 years ago committed by GitHub
parent 387f6b6bf6
commit e9c0c9b693
  1. 3
      selfdrive/ui/qt/maps/map_panel.cc

@ -14,6 +14,9 @@ MapPanel::MapPanel(const QMapboxGLSettings &mapboxSettings, QWidget *parent) : Q
auto map = new MapWindow(mapboxSettings);
QObject::connect(uiState(), &UIState::offroadTransition, map, &MapWindow::offroadTransition);
QObject::connect(device(), &Device::interactiveTimeout, [=]() {
content_stack->setCurrentIndex(0);
});
QObject::connect(map, &MapWindow::requestVisible, [=](bool visible) {
// when we show the map for a new route, signal HomeWindow to hide the sidebar
if (visible) { emit mapPanelRequested(); }

Loading…
Cancel
Save