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