ui: only open map pane when route is not empty (#24352)

This commit is contained in:
Willem Melching
2022-04-28 14:51:02 +02:00
committed by GitHub
parent c9be2f02c3
commit bff0db566b
+1 -1
View File
@@ -131,7 +131,7 @@ void MapWindow::timerUpdate() {
}
}
if (sm->updated("navRoute")) {
if (sm->updated("navRoute") && (*sm)["navRoute"].getNavRoute().getCoordinates().size()) {
qWarning() << "Got new navRoute from navd. Opening map:" << allow_open;
// Only open the map on setting destination the first time