mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-09-03 23:03:41 +08:00
Update settings.cc
This commit is contained in:
@@ -123,6 +123,14 @@ InfiniteCableTogglesPanel::InfiniteCableTogglesPanel(SettingsWindow *parent) : L
|
||||
});
|
||||
}
|
||||
|
||||
void InfiniteCableTogglesPanel::showEvent(QShowEvent *event) {
|
||||
ListWidget::showEvent(event);
|
||||
if (steer_offset_control) {
|
||||
float val = QString::fromStdString(params.get("AngleOffsetDegree")).toFloat();
|
||||
steer_offset_control->setLabel(QString::number(val, 'f', 1) + "°");
|
||||
}
|
||||
}
|
||||
|
||||
void InfiniteCableTogglesPanel::expandToggleDescription(const QString ¶m) {
|
||||
toggles[param.toStdString()]->showDescription();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user