mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-24 23:42:05 +08:00
map panel: show map on interactive timeout (#28904)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
This commit is contained in:
@@ -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(); }
|
||||
|
||||
Reference in New Issue
Block a user