Skip to content

Commit

Permalink
UI: call map::offroadTransition after creating map (commaai#23283)
Browse files Browse the repository at this point in the history
  • Loading branch information
deanlee authored Dec 21, 2021
1 parent 2d85785 commit 50cce27
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions selfdrive/ui/qt/onroad.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 50cce27

Please sign in to comment.