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

old-commit-hash: 50cce27e34aaed9ee5029031447b36a8fa328851
This commit is contained in:
Dean Lee
2021-12-22 03:06:45 +08:00
committed by GitHub
parent 487f8cdeaf
commit 54a3a91628
+1
View File
@@ -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;