Skip to content

Commit

Permalink
Revert "try to refresh driving_personalities_ui_wheel_Toggle"
Browse files Browse the repository at this point in the history
This reverts commit 10823b9.
  • Loading branch information
Edison-CBS committed Jul 12, 2023
1 parent 10823b9 commit d0745b7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
3 changes: 1 addition & 2 deletions selfdrive/ui/qt/offroad/settings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,7 @@ void TogglesPanel::updateToggles() {
e2e_toggle->setEnabled(true);
e2e_toggle->setDescription(e2e_description);
long_personality_setting->setEnabled(true);
driving_personalities_ui_wheel_Toggle->setEnabled(true);
long_personality_setting->refresh();
driving_personalities_ui_wheel_Toggle->setEnabled(true);
} else {
// no long for now
e2e_toggle->setEnabled(false);
Expand Down
6 changes: 0 additions & 6 deletions selfdrive/ui/qt/widgets/controls.h
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,6 @@ class ButtonParamControl : public AbstractControl {
}
}

void refresh() {
for (auto btn : button_group->buttons()) {
btn->setChecked(button_group->checkedId() == params.getInt("LongitudinalPersonality"));
}
}

private:
std::string key;
Params params;
Expand Down

0 comments on commit d0745b7

Please sign in to comment.