Hide Alerts
This commit is contained in:
@@ -8,8 +8,12 @@
|
||||
void OnroadAlerts::updateState(const UIState &s, const FrogPilotUIState &fs) {
|
||||
Alert a = getAlert(*(s.sm), *(fs.sm), s.scene.started_frame);
|
||||
if (!alert.equal(a)) {
|
||||
alert = a;
|
||||
update();
|
||||
if (alert.status == cereal::SelfdriveState::AlertStatus::NORMAL && frogpilot_toggles.value("hide_alerts").toBool()) {
|
||||
clear();
|
||||
} else {
|
||||
alert = a;
|
||||
update();
|
||||
}
|
||||
}
|
||||
|
||||
// FrogPilot variables
|
||||
|
||||
Reference in New Issue
Block a user