mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-26 16:32:06 +08:00
ui: only open map pane when route is not empty (#24352)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user