mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-25 11:52:20 +08:00
hide slc_offset on none
This commit is contained in:
+3
-3
@@ -124,11 +124,11 @@ void SpeedLimitControlSubpanel::refresh() {
|
||||
}
|
||||
|
||||
if (static_cast<SLCOffsetType>(std::atoi(params.get("SpeedLimitOffsetType").c_str())) == SLCOffsetType::NONE) {
|
||||
slc_offset->setDisabled(true);
|
||||
slc_offset->setLabel(tr("N/A"));
|
||||
slc_offset->setVisible(false);
|
||||
} else {
|
||||
slc_offset->setDisabled(false);
|
||||
slc_offset->setVisible(true);
|
||||
slc_offset->setLabel(offsetLabel);
|
||||
slc_offset->showDescription();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user