diff --git a/selfdrive/ui/qt/onroad/alerts.cc b/selfdrive/ui/qt/onroad/alerts.cc index 456927b6..82080680 100644 --- a/selfdrive/ui/qt/onroad/alerts.cc +++ b/selfdrive/ui/qt/onroad/alerts.cc @@ -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