wip
This commit is contained in:
@@ -83,11 +83,12 @@ void HomeWindow::updateState(const UIState &s) {
|
||||
|
||||
void HomeWindow::offroadTransition(bool offroad) {
|
||||
body->setEnabled(false);
|
||||
sidebar->setVisible(offroad);
|
||||
if (offroad) {
|
||||
sidebar->setVisible(false);
|
||||
slayout->setCurrentWidget(ready);
|
||||
// slayout->setCurrentWidget(home);
|
||||
} else {
|
||||
sidebar->setVisible(false);
|
||||
slayout->setCurrentWidget(onroad);
|
||||
uiState()->scene.map_open = onroad->isMapVisible();
|
||||
}
|
||||
@@ -122,6 +123,7 @@ void HomeWindow::mousePressEvent(QMouseEvent* e) {
|
||||
|
||||
// CLEARPILOT - click ready shows home
|
||||
if (!onroad->isVisible() && ready->isVisible()) {
|
||||
sidebar->setVisible(true);
|
||||
slayout->setCurrentWidget(home);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user