UI: call map::offroadTransition after creating map (#23283)

pull/23287/head
Dean Lee 3 years ago committed by GitHub
parent 2d8578545f
commit 50cce27e34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      selfdrive/ui/qt/onroad.cc

@ -79,6 +79,7 @@ void OnroadWindow::offroadTransition(bool offroad) {
if (map == nullptr && (uiState()->has_prime || !MAPBOX_TOKEN.isEmpty())) {
MapWindow * m = new MapWindow(get_mapbox_settings());
m->setFixedWidth(topWidget(this)->width() / 2);
m->offroadTransition(offroad);
QObject::connect(uiState(), &UIState::offroadTransition, m, &MapWindow::offroadTransition);
split->addWidget(m, 0, Qt::AlignRight);
map = m;

Loading…
Cancel
Save