fix(ui): match severity gate case-insensitively

The critical-event gate used a case-sensitive == "critical" where every
other status/severity compare in the UI uses strings.EqualFold, so a
daemon-side reword to a different case would silently drop the bypass.
This commit is contained in:
Zoltán Papp
2026-06-15 12:29:50 +02:00
parent 6c15e8b51c
commit 37eb150535

View File

@@ -53,7 +53,7 @@ func (t *Tray) onSystemEvent(ev *application.CustomEvent) {
return
}
critical := se.Severity == "critical"
critical := strings.EqualFold(se.Severity, "critical")
t.profileMu.Lock()
enabled := t.notificationsEnabled
t.profileMu.Unlock()