nav: Only recompute when onroad (#21797)

This commit is contained in:
Willem Melching
2021-07-30 12:13:51 +02:00
committed by GitHub
parent 6048988c13
commit c09cff23aa
+4
View File
@@ -259,6 +259,10 @@ static float get_time_typical(const QGeoRouteSegment &segment) {
void MapWindow::recomputeRoute() {
if (!QUIState::ui_state.scene.started) {
return;
}
// Retry all timed out requests
if (!m_map.isNull()) {
m_map->connectionEstablished();