mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-16 08:42:07 +08:00
simpler to handle offroad transition
This commit is contained in:
@@ -61,9 +61,7 @@ void MadsSettings::showEvent(QShowEvent *event) {
|
||||
}
|
||||
|
||||
void MadsSettings::updateToggles(bool _offroad) {
|
||||
for (auto setting : findChildren<ButtonParamControl*>()) {
|
||||
setting->setEnabled(_offroad);
|
||||
}
|
||||
madsPauseLateralOnBrake->setEnabled(_offroad);
|
||||
|
||||
offroad = _offroad;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user