mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-09-29 10:43:42 +08:00
ui: Speed Limit Assist: Fix Speed Limit Warning button behavior
This commit is contained in:
@@ -71,6 +71,7 @@ void SpeedLimitWarningSettings::updateToggles() {
|
||||
}
|
||||
|
||||
auto speed_limit_warning_type_param = QString::fromStdString(params.get("SpeedLimitWarningType"));
|
||||
auto speed_limit_warning_offset_type_param = QString::fromStdString(params.get("SpeedLimitWarningOffsetType"));
|
||||
|
||||
speed_limit_warning_settings->setDescription(speedLimitWarningDescriptionBuilder("SpeedLimitWarningType", speed_limit_warning_descriptions));
|
||||
speed_limit_warning_flash->setEnabled(speed_limit_warning_type_param != "0");
|
||||
@@ -81,7 +82,7 @@ void SpeedLimitWarningSettings::updateToggles() {
|
||||
slwvo->setEnabled(QString::fromStdString(params.get("SpeedLimitWarningOffsetType")) != "0");
|
||||
|
||||
speed_limit_warning_offset_settings->setEnabled(speed_limit_warning_type_param != "0");
|
||||
slwvo->setEnabled(speed_limit_warning_type_param != "0");
|
||||
slwvo->setEnabled(speed_limit_warning_offset_type_param != "0");
|
||||
}
|
||||
|
||||
// Speed Limit Control Custom Offset
|
||||
|
||||
Reference in New Issue
Block a user