Skip to content

Commit 000e20a

Browse files
adeebshihadehCasey Francis
authored andcommitted
UI: don't disable toggles onroad
1 parent a5d2fff commit 000e20a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

selfdrive/ui/qt/offroad/settings.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,6 @@ TogglesPanel::TogglesPanel(SettingsWindow *parent) : ListWidget(parent) {
109109
auto toggle = new ParamControl(param, title, desc, icon, this);
110110
bool locked = params.getBool((param + "Lock").toStdString());
111111
toggle->setEnabled(!locked);
112-
if (!locked) {
113-
connect(uiState(), &UIState::offroadTransition, toggle, &ParamControl::setEnabled);
114-
}
115112
addItem(toggle);
116113
}
117114
}

0 commit comments

Comments
 (0)