From e9c0c9b6937be13cdc201d23277d24edd42f3f3f Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Thu, 13 Jul 2023 02:35:57 -0700 Subject: [PATCH] map panel: show map on interactive timeout (#28904) Co-authored-by: Cameron Clough old-commit-hash: daf80eaef55bf598325b4f771b28c094df64559b --- selfdrive/ui/qt/maps/map_panel.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/selfdrive/ui/qt/maps/map_panel.cc b/selfdrive/ui/qt/maps/map_panel.cc index aeccaa71c1..b2d00bf049 100644 --- a/selfdrive/ui/qt/maps/map_panel.cc +++ b/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(); }