mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-09-30 19:33:49 +08:00
UI: call map::offroadTransition after creating map (#23283)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user