Skip to content

Commit

Permalink
UI: don't disable toggles onroad
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh authored and Casey Francis committed Jun 22, 2022
1 parent a5d2fff commit 000e20a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions selfdrive/ui/qt/offroad/settings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,6 @@ TogglesPanel::TogglesPanel(SettingsWindow *parent) : ListWidget(parent) {
auto toggle = new ParamControl(param, title, desc, icon, this);
bool locked = params.getBool((param + "Lock").toStdString());
toggle->setEnabled(!locked);
if (!locked) {
connect(uiState(), &UIState::offroadTransition, toggle, &ParamControl::setEnabled);
}
addItem(toggle);
}
}
Expand Down

0 comments on commit 000e20a

Please sign in to comment.