do not hide system critical alerts

This commit is contained in:
firestar5683
2026-03-29 18:10:59 -05:00
parent da0be57e88
commit a6721ca3af
34 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -8,7 +8,8 @@
void OnroadAlerts::updateState(const UIState &s, const StarPilotUIState &fs) {
Alert a = getAlert(*(s.sm), *(fs.sm), s.scene.started_frame);
if (!alert.equal(a)) {
if (alert.status == cereal::SelfdriveState::AlertStatus::NORMAL && starpilot_toggles.value("hide_alerts").toBool()) {
// Hide only incoming NORMAL alerts. Keep userPrompt/critical visible.
if (a.status == cereal::SelfdriveState::AlertStatus::NORMAL && starpilot_toggles.value("hide_alerts").toBool()) {
clear();
} else {
alert = a;
BIN
View File
Binary file not shown.