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

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
This commit is contained in:
Shane Smiskol
2023-07-13 02:35:57 -07:00
committed by GitHub
parent ae4a375dd6
commit daf80eaef5
+3
View File
@@ -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(); }