Hide Alerts

This commit is contained in:
James
2025-12-01 12:00:00 -07:00
parent 48b3e1ee35
commit 9861e6c630
+6 -2
View File
@@ -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