mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 08:14:00 +08:00
UI: call map::offroadTransition after creating map (#23283)
old-commit-hash: 50cce27e34aaed9ee5029031447b36a8fa328851
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