Skip to content

Commit

Permalink
awake=true
Browse files Browse the repository at this point in the history
  • Loading branch information
deanlee committed Nov 4, 2021
1 parent ec784da commit b32fe56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions selfdrive/ui/qt/home.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ HomeWindow::HomeWindow(QWidget* parent) : QWidget(parent) {
});
slayout->addWidget(driver_view);
setAttribute(Qt::WA_NoSystemBackground);

QObject::connect(uiState(), &UIState::offroadTransition, this, &HomeWindow::offroadTransition);
}

Expand All @@ -47,7 +46,7 @@ void HomeWindow::showSidebar(bool show) {

void HomeWindow::offroadTransition(bool offroad) {
sidebar->setVisible(offroad);
if (offroad) {
if (offroad) {
slayout->setCurrentWidget(home);
} else {
slayout->setCurrentWidget(onroad);
Expand Down
2 changes: 1 addition & 1 deletion selfdrive/ui/ui.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class UIState : public QObject {
UIStatus status;
UIScene scene = {};

bool awake;
bool awake = true;
bool has_prime = false;

float car_space_transform[6];
Expand Down

0 comments on commit b32fe56

Please sign in to comment.